Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
Good day,
I have exactly same DAX for Var and Total cost to provide the best plant. When used Var cost plant is not correct vs Total cost where result is as expected.
LOCATION = VAR MinPrice = CALCULATE ( MIN(COST[TOTAL_COST]) )
RETURN CALCULATE ( MIN ( COST[LOCATION]), FILTER ( ALLEXCEPT ( COST, COST[LOCATION]), COST[TOTAL_COST]= MinPrice ) )
Thank you
Solved! Go to Solution.
Good day,
First thank you, find a solution, changed dax to
= CALCULATE(MIN(COST[LOCATION]),TOPN(1, COST , COST[$],ASC))
issue was two $ values are equal and seems BI pulled first in line value instead correct one
Good day,
First thank you, find a solution, changed dax to
= CALCULATE(MIN(COST[LOCATION]),TOPN(1, COST , COST[$],ASC))
issue was two $ values are equal and seems BI pulled first in line value instead correct one
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
19 | |
18 | |
15 | |
13 | |
13 |
User | Count |
---|---|
9 | |
8 | |
8 | |
6 | |
6 |