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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.