Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
admin_xlsior
Post Prodigy
Post Prodigy

grouping some measures and put in matrix

Hi,

 

I created a bunch of measures in my fact table, lets say:

- Working Hours Standard

- Working Hours Overtime

- Working Hours Weekend

- AVG Working Hours Standard Monthly

- AVG Working Hours Overtime Monthly

- AVG Working Hours Weekend Monthly

 

Please don;t mind about the formula, the intention after that is, I want to display it in Matrix Visualization, with some leveling like below :

 

image.png

 

Kindly help,

 

Thanks

 

 

 

 

8 REPLIES 8
parry2k
Super User
Super User

@admin_xlsior you need to have Standard/Overtime/Worked as column in your model. Seems like you need to change how your table is structured. It need to be unpivoted (as looks like)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi,

 

Unpivot meaning it is not possible ?

 

I just found this approach, while it looks good, but then after I tried, the Subtotal and Grandtotal per rows is incorrect.

 

Thanks,

@admin_xlsior without knowing how your data table is structured, it is very hard to answer. I was replying to your original post and now why numbers are incorrect, it could be totally different thing.

 

You need to share sample data and what you are trying to achieve, it will help you get the solution/answer quickly.

 

Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi,

 

Apologize to be unclear.

Please find below link :

https://www.dropbox.com/s/9mb4mwupajve5rl/Testing_leveling.pbix?dl=0

 

I have created a sample .pbix to re-create the approach in that link, hope it will help to explain more clear. Just FYI, the measures created are for sample in order to have a value only, so it does not serve any purpose. The way it needs to group in the column level in the matrix is the point of intention.

 

Thanks.

 

Hi @admin_xlsior ,

Thanks to share your own solution. More people will benefit from here.  You can  mark your answer as a solution.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

Actually it is only part of the solution. As mentioned, the matrix cannot calculate the Row Total and Row Grand Total.

 

Thanks,

 

Hi guys,

 

Does anyone know how to resolves this? 

 

Thanks,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.