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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
DeepakJha23
Helper I
Helper I

Compare row and column header in matrix chart

Hi PBI Community,

 

We have a requirement as below :

DeepakJha23_0-1675925227290.png

We are creating a slant chart in Power BI matrix chart . It compares the row header(Version) against the column header(Fiscal Week). 

 

If the row header is equal to column header then QTY. value should flow downwards to other rows till week 52 like below :

 

DeepakJha23_1-1675925419903.png

 

I would like to know how this can be achieved in Power BI. 

 

Thanks in advance.

 

 

@amitchandak  @olgad  @FreemanZ  @Sahir_Maharaj @Greg_Deckler 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DeepakJha23 

You can create a measure 

Measure 2 = IF(MAX([Version])<=MAX([Fiscal Week]),MAX([QTY]),MINX(FILTER(ALL('Table'),[Version]<=MAX([Version])&&[Fiscal Week]=MAX([Fiscal Week])&&[Version]=[Fiscal Week]),[QTY]))

Output

vxinruzhumsft_0-1676014659480.png

Best Regards!

Yolo Zhu

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

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @DeepakJha23 

You can create a measure 

Measure 2 = IF(MAX([Version])<=MAX([Fiscal Week]),MAX([QTY]),MINX(FILTER(ALL('Table'),[Version]<=MAX([Version])&&[Fiscal Week]=MAX([Fiscal Week])&&[Version]=[Fiscal Week]),[QTY]))

Output

vxinruzhumsft_0-1676014659480.png

Best Regards!

Yolo Zhu

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

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors