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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors