Forum Discussion
Reverse Percentage
- 5 years ago
Toots , Try
divide([Count Order Lines]-[Cancelled Order Lines],[Count Order Lines])
or
if([Cancelled order line]<>0, divide([count of order line]-[Cancelled order line],[count of order line]),blank())
Toots , Not very clear. Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.
In case you only want to change grand total
if(isfiltered(Table[Week]), divide([Cancelled order line],[count of order line]), 1-divide([Cancelled order line],[count of order line]))
- Toots5 years agoFrequent Visitor
Sorry, On the right track but I would like it all same format as the grand total with 1-
- amitchandak5 years agoSuper User
Toots , Try these. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
if(not(isfiltered(Table[Week])), divide([Cancelled order line],[count of order line]), divide([count of order line]-[Cancelled order line],[count of order line]))
if(not(isfiltered(Table[Week])), divide([Cancelled order line],[count of order line]), if([Cancelled order line]<>0, divide([count of order line]-[Cancelled order line],[count of order line]),blank()))- Toots5 years agoFrequent Visitor
This would be perfect if the Total changed also.
DIFOT = if(not(isfiltered('Calendar'[Week #])), divide([Cancelled Order Lines],[Count Order Lines]), divide([Count Order Lines]-[Cancelled Order Lines],[Count Order Lines]))I will also have to try do up sample data for you