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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

Budgets vs Fact

Is it possible to do Matrix like this, with two lvl headers, 1st lvl must be dinamic depending on selected year and month

 

Analitika_0-1610045121588.png

 

M1 = CALCULATE(SUMX(Table1, Value), Table1[Year] = Selected Year)
M2 = CALCULATE(SUMX(Table1, Value), Table1[Year] = Selected Year,  Table1[Month] = Selected Last Month)
M3 = CALCULATE(SUMX(Table2, Value), Table2[Year] = Selected Year,  Table2[Month] = Selected Last Month)
M4 = DIVIDE(M2-M3,M3)
M5 = M1 - M3

 

Expected result matrix

Analitika_0-1610046267636.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Analitika,

It is impossible to default matrix to customize headers as you wanted, measure expressions can be dynamically change based on the current selections.

I'd like to suggest you create a matrix with the group and all measure expressions, then you can create some measures to show the selected ranges and use them on card visual to and combine with the matrix as custom headers.

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @Analitika,

It is impossible to default matrix to customize headers as you wanted, measure expressions can be dynamically change based on the current selections.

I'd like to suggest you create a matrix with the group and all measure expressions, then you can create some measures to show the selected ranges and use them on card visual to and combine with the matrix as custom headers.

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors