Forum Discussion
All Except Issue- Find a % value using ALLEXCEPT
Hi,
I created a measure for sum the total for respective of tag, So i got a total values of indiviual tag id.there i used all except measure to create the total for the respective tag ID. after that i want the find the percentage of the total.
Below i mentioned the measure
1.
2.
I'm enclosing the sample data. for your reference.
| Tag ID | Set ID | Set Name | System Name | Tag Owner | Order Owner | No of Procedures | Total Procedures | % of Usage | Usage Type |
| 297 | 965.905 | Coalan | Colan | CC | GN | 6 | 8 | 75% | Shared |
| 297 | 965.905 | Colan | COlan | CC | SL | 2 | 8 | 25% | Shared |
| 300 | 984.903 | COAL | COAL | CC | GN | 1 | 4 | 25% | Shared |
| 300 | 984.903 | COAL | COAL | GN | GN | 3 | 4 | 75% | Used |
| 907 | 932.903 | MARS | MARS | CS | CS | 3 | 6 | 50% | Used |
| 907 | 932.903 | MARS | MARS | CS | IH | 3 | 6 | 50% | Shared |
| Tag ID | Set ID | Set Name | System Name | Tag Owner | Order Owner | No of Procedures | Total Procedures | % of Usage | Usage Type |
| 300 | 984.903 | COAl | COAl | GN | GN | 3 | 3 | 100% | Used |
| 907 | 932.903 | MARS | MARS | CS | CS | 3 | 3 | 100% | Used |
| Tag ID | Set ID | Set Name | System Name | Tag Owner | Order Owner | No of Procedures | Total Procedures | % of Usage | Usage Type |
| 300 | 984.903 | COAl | COAl | GN | GN | 3 | 4 | 75% | Used |
| 907 | 932.903 | MARS | MARS | CS | CS | 3 | 6 | 50% | Used |
3 Replies
- amitchandakSuper User
NavaneethaRaju , Have you tried
divide(SUM('Procedure Fact'[Procedures]), calculate(SUM('Procedure Fact'[Procedures])), all())
or
divide(SUM('Procedure Fact'[Procedures]), calculate(SUM('Procedure Fact'[Procedures])), allselected()) - v-yalanwu-msftCommunity Support
Hi, NavaneethaRaju ;
You could create a measure.
Total Procedures = CALCULATE(SUM('Tag Usage Fact'[No of Procedures]),ALLEXCEPT('Tag Usage Fact','Tag Usage Fact'[Tag ID]))% of Usage = SUM('Tag Usage Fact'[No of Procedures])/[Total Procedures]The final show:
Best Regards,
- NavaneethaRajuHelper IV
Hi v-yalanwu-msft ,
I also used this measure before, this measure only showing all total,
but actually the total should be respective of the selected date range. without that Filters(Order date) i can't display the total for selected date range.