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,
I am trying to write some DAX to get the distict count of SKUs that have a certain threshold of CM%. I have a measure calculating CM % and a measure calculating the distinctcount of SKUs in the full table. The formula works if I use rowcount but when I used distinctcount, the formula doesnt work...
Hi @jakerussell406
Modify your formula by adding the "filter" function.
Something like :
CountofSKUsnegCM% = CALCULATE(DISTINCTCOUNT(Data[SKU]), filter (your table,[CM%]<0))In case it still doesn't work out,
please attach your table and the desired result.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi!
Thanks for the help! It accepts the formula (no error) but when i drop it into a card it is showing as blank. Not sure why that would be... heres the updated formula:
The count measure above is:
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |