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.
Can anyone help me with my DAX syntax?
I have created a measure which ranks the number of applications received across a range of academic programmes
Solved! Go to Solution.
Try:
Rank Count Values = IF([CountOfApplications] > 0, [rank], BLANK())
Or
Rank = RANKX(FILTER(ALL('Application Folder Advanced'[Academic Programme]), [CountOfApplications]> 0), [CountOfApplications],,DESC,Skip)
Proud to be a Super User!
Paul on Linkedin.
Try:
Rank Count Values = IF([CountOfApplications] > 0, [rank], BLANK())
Or
Rank = RANKX(FILTER(ALL('Application Folder Advanced'[Academic Programme]), [CountOfApplications]> 0), [CountOfApplications],,DESC,Skip)
Proud to be a Super User!
Paul on Linkedin.
Thanks @PaulDBrown
As ever a simple solution works the best! That was in my blind spot
The first one works perfectly.
No joy with the second.
Thanks for the feedback
Hey @SteveODea
I believe @amitchandak is correct. But also check out the thread below for more information:
https://community.powerbi.com/t5/Desktop/RANKX-with-Slicers/td-p/69239
Also, check your CountOfApplication field in the visual field pane to make sure that "Show Items With No Data" is not selected.
If this helps please kudo.
If this solves your problem please accept it as a solution.
Thanks @Tad17 & @amitchandak
I substituted ALL for ALLSELECTED but this did not work.
@Tad17 you mentioned the visual field panel...where is this exactly?
Also, my CountOfApplications measure is as follows:
Hi @SteveODea ,
Can you share your PBIX to us for further analysis if you don't have any Confidential Information?
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The field pane is where you drag the values to be used in the visual. If you click the drop down arrow and you choose to show items with no data.
Thanks but this only appears for my programmes column and is unchecked - this option does not appear for either of my measures...
I think it should be all in place of allselected. But refer these
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |