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 need a DAX measure for power bi to calculate the percentage of times each "Journey Name" is "On Time" as opposed to "Late" weighed against itself only. As an example, I have the left table as my data and I need to be ale to get the result in the right table.
Solved! Go to Solution.
Hi, @ConsatSudbury
I have checked the pbix. There is no problem with the formula, you may need to check "show value as no calculation".
Best Regards,
Community Support Team _ Eason
Hi, @ConsatSudbury
@amitchandak 's formula needs to be adjusted, the denominator needs to be placed above the numerator.
% On Time =
DIVIDE (
CALCULATE (
COUNT ( 'Table'[Variance] ),
FILTER ( 'Table', 'Table'[EarlyLate] = "On Time" )
),
COUNT ( 'Table'[Variance] )
)
Best Regards,
Community Support Team _ Eason
Thanks @v-easonf-msft For some reason, it does not work for my steup. I try to reply and attach my .pbix but I get an error that file .pbix is not supported. Not sure if this link will work.
Hi, @ConsatSudbury
I have checked the pbix. There is no problem with the formula, you may need to check "show value as no calculation".
Best Regards,
Community Support Team _ Eason
@ConsatSudbury , You have to create measure like
divide(Count(Table[Journey Name]), Calculate(Count(Table[Journey Name]), filter(Table, Table[EarlyLate] = "On Time")))
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |