The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
We want to create measure by comparing decimal numbers . I have created below measure but numbers are not matching with Source
EX:
[Usage] = Sum(Usage) ( note: here Usage is stored as decimal)
Product Count (Usage = 0):= CALCULATE(DISTINCTCOUNT('Table'[Product]),FILTER(VALUES('Table'[Product]),[Usage]=0))
Product Count (Usage < 100):= CALCULATE(DISTINCTCOUNT('Table'[Product]),FILTER(VALUES('Table'[Product]),[Usage]<100))
Thanks,
Abhiram
@abhiram342 , Try like
Product Count (Usage = 0):= CALCULATE(countx(FILTER(VALUES('Table'[Product]),[Usage]=0),[Product]))
Product Count (Usage < 100):= CALCULATE(countx(FILTER(VALUES('Table'[Product]),[Usage]<100),[Product]))
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |