Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
In Power BI data I have 3 columns named DTAT, Vendor Name, and Engine Model.
Is there anyway to count the number of negative values in DTAT and whether those negative numbers are specific to a vendor or an engine model in the Vendor Name & Engine Model columns?
Ex: 324 negative values in Vendor A; 120 negative values in Vendor B OR 122 negative values in Engine A, etc.
[The 3 columns all have relationships with each other]
Thank you so much! Any help or suggestion is very much appreciated!
Solved! Go to Solution.
Hi @Anonymous,
One sample for your reference.
Measure = CALCULATE(COUNT(Table1[DTAT]),Table1[DTAT]<0)
Regards,
Frank
Hi @Anonymous,
One sample for your reference.
Measure = CALCULATE(COUNT(Table1[DTAT]),Table1[DTAT]<0)
Regards,
Frank
Your general approach would be to use a FILTER condition. Tying the counts to a specific vendor or engine is best done probably using visual filters on a card or table.
NegCount = CALCULATE( COUNT(Table[DTAT]), Table[DTAT] < 0 ) or NegCount = CALCULATE( COUNT(Table[DTAT]), FILTER(Table, Table[DTAT] < 0 ) )
Hope this helps
David
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |