Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear Experts,
I have a measure to compute for the variance of cost/unit of current from the previous cost/unit.
The problem that I encounter is the count card doesn't reflect the correct numbers based on the table.
Here's the dax that I wrote Count of Y = COUNTAX(KE30,KE30[limit reached?]="Y")
I tried different approaches which can be found also in the pbix file but the dax returns error.
I have attached the image and also the pbix for your reference.
Your help is much appreciated.
Thank you.
Solved! Go to Solution.
Hi,
Please find attached my PBI file.
Hope this helps.
@Ashish_Mathur Thanks for your dax somehow I was able to revise your code and make it work somehow.
@Ashish_Mathur Thanks for your dax somehow I was able to revise your code and make it work somehow.
You are welcome.
Thank you so much for this.
I can see that it counted the unique product codes but, currently, the goal is to count the occurrence of Y.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |