The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am using this DAX statement for a measure:
Yet when I go into the table view of the "Donor NPS" table, and filter on "Year-month" = 2023-08, & filter on "NPS" = all values checked except Blanks, it counts 3513 filtered rows. See screenshot below.
Why using the same criteria, does the DAX statement return a value of 3475 and filtering the table view counts 3513?
John
Solved! Go to Solution.
The COUNT will iterate only on the specified column, while COUNTROWS considers the whole table. That can make the difference to narrow down the problem. Glad it worked for you 🙂
Proud to be a Super User!
Thanks, I tried your first suggestion with the same result. The second gave me the error below in display of the visual:
We have some sensitive data in the application so I don't think I can share the whole pbix (which is 9MB). Can I share a portion of it with you? Would that help?
Any other suggestions?
John
Hi again,
I tried one other thing, your suggestion to use: n value1 = CALCULATE(COUNT(Donor NPS[NPS]), Donor NPS[NPS] <> BLANK()) except I took out the filter and now it matches what I had in the data table view. I'm thinking that the COUNT function maybe doesn't include blanks for a whole number field?
John
The COUNT will iterate only on the specified column, while COUNTROWS considers the whole table. That can make the difference to narrow down the problem. Glad it worked for you 🙂
Proud to be a Super User!
Is it possible for you to share your .pbix file?
In the meantime, other suggestions would be to try the following measures:
n value1 = CALCULATE(COUNT(Donor NPS[NPS]), Donor NPS[NPS] <> BLANK())
or
n value1 = CALCULATE(COUNT(Donor NPS[NPS]), Donor NPS[NPS] <> "")
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
80 | |
78 | |
47 | |
39 |
User | Count |
---|---|
148 | |
115 | |
65 | |
64 | |
53 |