Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Guys,
I'm having incorrect Rankx Total on my measure. see screen shot & DAX query below, When i filter on fiscal Year, The RankTotal changes to 13 which is incorrect instead of 12.
Solved! Go to Solution.
Hi @Anonymous ,
You can use the HASONEVALUE() function to fix the Total incorrect
Here are the steps you can follow:
Create a measure.
Total_Incorrect =
var _table=SUMMARIZE('dim_sites','dim_sites'[Division],"_value",[Table Rank2])
return
IF(HASONEVALUE('dim_sites'[Division]),[Table Rank2],SUMX(_table,[_value]))
Result
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
You can use the HASONEVALUE() function to fix the Total incorrect
Here are the steps you can follow:
Create a measure.
Total_Incorrect =
var _table=SUMMARIZE('dim_sites','dim_sites'[Division],"_value",[Table Rank2])
return
IF(HASONEVALUE('dim_sites'[Division]),[Table Rank2],SUMX(_table,[_value]))
Result
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Look at the DAX correctly let me know if i need to include the date dim.. or which filter context I'm missing.
Hi,
Do you have any blank value hidden ?
It must be related to context filters, because as soon as you are on a total (=no filter) or in a visual card (= no filter) you get 13 instead of 12. It means that your ranking without filters is incorrect.
Try to look for missing filters in your results...
Hope it helps a bit
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |