Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I am working with an Analysis Services Model which works on Live Connection.
With the December Power Bi Update we can add local tables also and make the model mixed.
So in my mixed model, i want to create a measure to substract 2 columns(one from live connection and one from local).
Live Connection Table
Layer | Limit | Deductible |
5xs5 | 5000000 | 5000000 |
10x10 | 10000000 | 10000000 |
Local Table
Claim | Incurred |
1 | 5494849 |
2 | 2025357 |
3 | 74282 |
I want a measure IncurredAboveDeductible, which will substract Incurred from Deductible
Claim | Incurred | Layer | Deductible | IncurredAboveDeductible |
1 | 5494849 | 5x5 | 5000000 | 494849 |
1 | 5494849 | 10x10 | 10000000 | 0 |
Kindly help if possible.
Thank you.
@amitchandak @daxer @parry2k @mahoneypat @AlB @lbendlin @sanalytics
Solved! Go to Solution.
Hi @Anonymous
You may try make change to live connection mode for Analysis Services to change mode to DirectQuery.
Blog: Using DirectQuery for Power BI datasets and Azure Analysis Services (preview)
Then you can use datasource from live connection and local at the same time.
Try to build a new calculated table.
Table = ADDCOLUMNS(GENERATE('Local Table','Live Connection'),"IncurredAboveDeductible",IF([Incurred]-[Deductible]<0,0,[Incurred]-[Deductible]))
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You may try make change to live connection mode for Analysis Services to change mode to DirectQuery.
Blog: Using DirectQuery for Power BI datasets and Azure Analysis Services (preview)
Then you can use datasource from live connection and local at the same time.
Try to build a new calculated table.
Table = ADDCOLUMNS(GENERATE('Local Table','Live Connection'),"IncurredAboveDeductible",IF([Incurred]-[Deductible]<0,0,[Incurred]-[Deductible]))
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for taking the time out to try and help me with this! I will go through the blog as well.
Hi @Anonymous
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Rico Zhou
Please provide more context. Are you trying to cross join the tables (which doesn't require common columns) ?
Thank you, Cross Join worked! I could compute the measure required!
This is my formula>>>
What have you tried so far? How did you connect the two data models?
Hello,
I have connected to the live connection model. And then added a local table with a SQL Query from Azure Analysis Services.
Just tried creating relationship between my local table and one table from Live Model. Could only create Many-Many and not Many-One like i wanted.
Could not create a relationship between the tables i have posted in my question as there are no matching columns.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.