Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |