Forum Discussion
Create a measure grouped by another column
- 3 years ago
Hi , Rayzo92
Thanks for your quick response!
If you want to calculate the sum of [Note] group by the [ID], you can create a measure:
Note Value = CALCULATE( SUM('Table'[Note]) ,ALLEXCEPT('Table','Table'[ID]))And then just put the measure on the visual and also on the "Filter on this visual" and then we can meet your need:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , Rayzo92
According to your image , do you mean you want to show the [Note]> 100 in the visual ?
If this , here are the steps you can refer to :
(1)This is my test data :
(2)We can create a measure :
Flag = var _cur_note = MAX('Table'[Note])
return
IF(_cur_note>100,1,0)
(3)Then we can put the measure on the "Filter on this visual" and we can meet your need:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for your reply ,
Actually i made a mistake when i create the dataset here the correct one (i edited on my post aswell) :
i think i need to create a specefic measure but not sure if allexpect work here in this case , thanks in advance
- v-yueyunzh-msft3 years ago
Community Support
Hi , Rayzo92
Thanks for your quick response!
If you want to calculate the sum of [Note] group by the [ID], you can create a measure:
Note Value = CALCULATE( SUM('Table'[Note]) ,ALLEXCEPT('Table','Table'[ID]))And then just put the measure on the visual and also on the "Filter on this visual" and then we can meet your need:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly