March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have created 3 simple measures:
Hi @aross0602 ,
Everytime the measure is called in an expression, the filter and/or context may be different. That is why it needs to be evaluated separately each time.
Paste the other measures that are referenced in the final measure, we may be able to optimize those as well.
try this:
Retail Transactions =
var Transactions = DISTINCTCOUNT('Transactions'[RevenueExtended])
return
calculate(Transactions,Filter('Transactions',[SalesChannel]="IN-STORE"))
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Did you intend to use RevenueExtended instead of OrderId in the var expression?
Hi @aross0602 ,
My suggestion is just to try not to load measures inside calculate function, since the filter and/or context may be different each time the metric is called in the expression
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I tried the formula suggested and it did not work unfortunately (it actually wasn't filtering for some reason). I did end up figuring it on my own and this is the formula that worked:
Hi @aross0602
Did you use Performance analyzer to determine part of the query is taking too long?
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Yes, these are the results:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
32 | |
24 | |
12 | |
11 | |
9 |
User | Count |
---|---|
47 | |
46 | |
23 | |
12 | |
9 |