Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi I have the below problem, what I want to do is a measure that will update with slicer year/month being select by user an caluate the percentage each grouping is based on the month grand total. So in January there was a total of 140 and 80 in group 1 is 57% of that.
Thanks
January | ||
Group 1 | 80 | 57% |
Group 2 | 10 | 7% |
Group 3 | 50 | 36% |
February | ||
Group 1 | 20 | 22% |
Group 2 | 10 | 11% |
Group 3 | 60 | 67% |
March | ||
Group 1 | 20 | 20% |
Group 2 | 30 | 30% |
Group 3 | 50 | 50% |
Solved! Go to Solution.
Hi @Shell64 ,
You can create a measure as below to get it:
Measure =
VAR _year =
SELECTEDVALUE ( 'Yourtable'[Date].[Year] )
VAR _monthno =
SELECTEDVALUE ( 'Yourtable'[Date].[MonthNo] )
VAR _per =
SUM ( 'Yourtable'[Value] )
VAR _group =
CALCULATE (
SUM ( 'Yourtable'[Value] ),
FILTER (
ALLSELECTED ( 'Yourtable' ),
YEAR ( 'Yourtable'[Date] ) = _year
&& MONTH ( 'Yourtable'[Date] ) = _monthno
)
)
RETURN
DIVIDE ( _per, _group )
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and the relationship info between the tables. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Shell64 ,
You can create a measure as below to get it:
Measure =
VAR _year =
SELECTEDVALUE ( 'Yourtable'[Date].[Year] )
VAR _monthno =
SELECTEDVALUE ( 'Yourtable'[Date].[MonthNo] )
VAR _per =
SUM ( 'Yourtable'[Value] )
VAR _group =
CALCULATE (
SUM ( 'Yourtable'[Value] ),
FILTER (
ALLSELECTED ( 'Yourtable' ),
YEAR ( 'Yourtable'[Date] ) = _year
&& MONTH ( 'Yourtable'[Date] ) = _monthno
)
)
RETURN
DIVIDE ( _per, _group )
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and the relationship info between the tables. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Read about REMOVEFILTERS. Identify the total for each month by removing the group filter, and then divide the current value by that.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |