Forum Discussion
Grouping columns based on column in table
- Anonymous2 years ago
Hi sscott ,
I create simple data as follows:
The relationship between them:
Please follow these steps:
1.Create a measure:
Measure = var sum1=CALCULATE(SUM('Table'[Percentage]),FILTER(ALL(Range),'Range'[Grade] >= MAX('Range'[Grade]) && 'Range'[Grade] <= 9)) RETURN sum12.Use range as columns and measure as values:
The pbix file is attached.
Best Regards,
Zhu
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi sscott ,
I create simple data as follows:
The relationship between them:
Please follow these steps:
1.Create a measure:
Measure =
var sum1=CALCULATE(SUM('Table'[Percentage]),FILTER(ALL(Range),'Range'[Grade] >= MAX('Range'[Grade]) && 'Range'[Grade] <= 9))
RETURN
sum1
2.Use range as columns and measure as values:
The pbix file is attached.
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!