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 September 15. Request your voucher.
I recieved a file with this formula:
KPI 2 (%) = IF(COUNTROWS(FILTER(Projectstatus; Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Ja"))=0;0; COUNTROWS(FILTER(Projectstatus; Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Ja"))) / [Totaal Aantal Actieve Projecten]
I want to add a formula that if the answer is "Nee" that wil result in a negatieve counting %.
Im learning alot thx too you guys.
@Anonymous,
You may refer to the DAX below.
Measure = - ( COUNTROWS ( FILTER ( Projectstatus; Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Nee" ) ) + 0 ) / [Totaal Aantal Actieve Projecten]
i copied your dax. it still is 100%
KPI 2 (%) = IF(COUNTROWS(FILTER(Projectstatus; Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Ja"))=0;0; COUNTROWS(FILTER(Projectstatus; Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Ja"))) / [Totaal Aantal Actieve Projecten]- (
COUNTROWS (
FILTER (
Projectstatus;
Projectstatus[Binnen planning opgeleverd? (KPI 2)] = "Nee"
)
)
+ 0
)
/ [Totaal Aantal Actieve Projecten]
What im doing wrong?
@Anonymous,
Show us a complete example and the expected output.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |