The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.