Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
This is the matrix i am using in which ( Room Night , room Night last year , Room Night SWLY and Room Night %Diff )are the measures using which are shown in row side by Values section on the formatting pane and look for Show On rows and Toggle that switch to On. And that helps me to put 4 values on rows. But my problem is i need to calculate column total using DAX query .beacause for each measure in the row the grand total is different we cant use the default powerbi column total of matrix ..someone please help me this is my requirement
Here ABC ,DEF , DHI ,JKL ,MNO ARE are the booking channel .( comes from booking channel table booking channel column)
under values room night etc are calculated measures
Total is the default column total of powerbi matrix
but I NEED LIKE THIS grand total of room_night = sum of (ABC + DEF + DHI +JKL )
grand total of room_night LAST YEAR = sum of (ABC + DEF + DHI +JKL + MNO )
grand total of room_night SWLY = sum of (ABC + DEF + DHI +JKL )
grand total of Room Night %Diff = ((grand total of room_night SWLY- Room Night of ABC) /grand total of room_night SWLY) * 100
Meaures used in matirx:
Room Night = SUM(TABLE[TOTAL NIGHTS])
Values | ABC | DEF | DHI | JKL | MNO | Total | Grand_Total |
Room Night | 20 | 10 | 30 | 20 | 10 | 90 | 80 |
room Night last year | 10 | 5 | 20 | 18 | 8 | 61 | 61 |
Room Night SWLY | 9 | 6 | 19 | 17 | 6 | 57 | 51 |
Room Night %Diff | 50% | 50% | 33.3% | 10% | 20% | 32.2% | 60% |
Solved! Go to Solution.
@Anonymous , using isfiltered or has onevalue change the grand total formula.
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
So, create one more formula that will give correct grand total that should be used in else like
if(isfiltered(Table[Group],[Room Night],[Room Night Total])
You will not get two totals as the hybrid display is not supported
I logged idea for that
If your date table is proper, that you do not need all(date[date]) with time intelligence
@Anonymous , using isfiltered or has onevalue change the grand total formula.
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
So, create one more formula that will give correct grand total that should be used in else like
if(isfiltered(Table[Group],[Room Night],[Room Night Total])
You will not get two totals as the hybrid display is not supported
I logged idea for that
If your date table is proper, that you do not need all(date[date]) with time intelligence
Thanks for your sloution , i create one new measure using ur suggested formula like
hi
The table which i shown in the question is my sample data .i dont know how to upload a pbix file sample in community.please help me with the table which i given there. i mentioned all the details there with expected output.please help me???? i just need a grand total for particular condition . and need to incorporate in to the matrix
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |