Forum Discussion
Elmoataz
3 years agoNew Member
Percentage based on a group
Hello, I'm trying to create a column that shows the percentage based on the other columns. For example; in the picture below I got the percentage of each of the materials based on the Order number us...
- 3 years ago
Hi,
Please check the below picture and the attached pbix file.
Percentage measure: = IF ( HASONEVALUE ( 'Order Number'[Order number] ), DIVIDE ( [Amount measure:], CALCULATE ( [Amount measure:], ALL ( Material[Materials] ) ) ) )
Elmoataz
3 years agoNew Member
Jihwan_Kim Thank you so much. I have one more question. How can I get the average instead of the percentage?
- Jihwan_Kim3 years ago
Super User
Hi,
Thank you for your message.
Please check the attached file.
Thanks.