Forum Discussion
Anonymous
8 years agoNot applicable
Calculated % measure
Hello, I have problems creating a measure, i want to show on a line chart the percentage of "orders on time" (1). My power bi table looks like the first one with orders and itmes, and when I ma...
- 8 years ago
Hi Anonymous
You may create measure as below:
Measure = COUNTROWS ( SUMMARIZE ( FILTER ( Table1, Table1[Time] = 1 ), Table1[Order] ) ) / DISTINCTCOUNT ( Table1[Order] )Regards,
Cherie
Zubair_Muhammad
8 years agoCommunity Champion
Anonymous
Try this one
Measure =
VAR orderswithTime1 =
COUNTROWS (
FILTER ( VALUES ( Table1[Order] ), CALCULATE ( SUM ( Table1[Time] ) ) > 0 )
)
VAR TotalOrders =
COUNTROWS ( VALUES ( Table1[Order] ) )
RETURN
DIVIDE ( orderswithTime1, TotalOrders )