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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sandritto
Frequent Visitor

Matrix hierarchy grouping not showing data

Hi everyone,

 

I'm having trouble grouping data in a matrix. The matrix has two levels of columns, and a measure as values.

 

matrix.PNG

 

 

As you can see, with both levels deployed it shows data correctly. Trouble comes when I group up a level, it won't show any data. Like if there was something wrong with source data.

 

matrix1.PNG

 

 

Here's a screenshot of the dataset, so you can see hierarchy has sense.

 

estados.PNG

 

Congelado -- groups next 2 weeks.

Semiliquido -- groups from 2-6 next weeks.

Liquido -- groups from 7-8 next weeks.

 

Middle column is just for ordering purposes.

 

 

My goal is to get the average of the weeks im grouping. That's the simplest way I thought of doing it, maybe there's another way... creating another measure...

 

 

Any advice?

 

 

8 REPLIES 8
parry2k
Super User
Super User

@Sandritto what are you trying to calculate, it is not very clear? What measure you alredy created?



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 @parry2k ,

 

I'm just trying to group VarianceA by Estado. But it won't show any data as you can see in the screenshot above.

 

The measure I created is VarianceA, which I'm using as values in the matrix.

 

Regards

@Sandritto ok but is that measure expression?



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 @parry2k ,

 

What do you mean by expression?

 

Here is the measure VarianceA:

 

var.PNG

 

Calculating variance between weeks.

 

Regards

hi @Sandritto 

For your case, it related to row context in dax. 

https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KEITHO
Frequent Visitor

Could you not put week of year in the row value?

tablevariables.jpg

Is there some reason that would not work for you?

Hi @KEITHO ,

 

There is. I don't want to show WeekofYear, just VarianceA grouped by Estado.

 

The result would be someting like this, with the correct values:

 

matrix3.PNG

 

Regards

Ah ok.

I thought that if you put Estado in rows, and weeks underneath it, it will give you the sum of variances for each week, and you could change it from sum to average.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors