Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48469

Re: Integrate PowerBI with AX7

$
0
0

For your first question, I believe the answer will be row level security, RLS.  has a good post on it here.

 

For you second question, you should be able to use parameters in connection strings, otherwise, see the technique below:

 

let
    DevSource = Csv.Document(File.Contents("C:\temp\powerbi\test_dev.csv"),[Delimiter=",", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    ProdSource = Csv.Document(File.Contents("C:\temp\powerbi\test_prod.csv"),[Delimiter=",", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers Dev" = Table.PromoteHeaders(DevSource),
    #"DevResult" = Table.TransformColumnTypes(#"Promoted Headers Dev",{{"Column1", type text}, {"Column2", Int64.Type}}),

    #"Promoted Headers Prod" = Table.PromoteHeaders(ProdSource),
    #"ProdResult" = Table.TransformColumnTypes(#"Promoted Headers Prod",{{"Column1", type text}, {"Column2", Int64.Type}}),

    result = 
        if Environment = "Dev"
        then #"DevResult"
        else #"ProdResult"
in
    #"result"

Viewing all articles
Browse latest Browse all 48469


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>