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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ringovski
Helper II
Helper II

Matrix Table with QTD YTD by Product

Hi All,

I need to have QTR & YTD as columns in a Matrix table with the rows being country>products. 

 

Current Matrix Table

 

Year

Country_Code

  2021

  Value$

  2022

  Value$

USA  
         code1001328967 12888454 
         code10184353905 27880729 
         code10241839  230237
         Total85724711 40999420  
UK  
         code1001378967 82888454 
         code10194353905 87880729 
         code10291839  130237
         Total85724711 40999420  

 

Desired Matrix Table

 

Year

Country_Code

  2021

  Value$

  2022

  Value$

Jan-Feb 2022 QTR

Jan-Feb 2023 QTR

2023 YTD

USA     
         code1001328967 12888454    
         code10184353905 27880729    
         code10241839  230237   
         Total85724711 40999420     
UK     
         code1001328967 12888454    
         code10194353905 87880729    
         code10291839  130237   
         Total85724711 40999420     

 

Theres one fact table Export_Fact_Codes with Dimension for each SK Dim_Country, Dim_Product etc.. and a date_date (dates, month,QtrText,Quarter,ShortNameMonth )

 

Fact Table name Export_Fact_Codes_All       
        
calendar_sk country_sk loading_sk discharge_sk product_code_sk state_sk quantity_sk value
30010016001211 4001 328967  
30010116011212 600 84353905  
30010226031212 800 41839
30110016001212 900 12888454  
30110126011213 1000 27880729  
30110226021213 200 230237  

 

I have created the relevant measures;

 

SumValue = Sum(Export_Fact_Codes_All[value])

QTRValue = TOTALQTD([SumValues],Date_Table[Dates])

YTDValue = TOTALYTD([SumValues],Date_Table[Dates])

 

However when I try adding the measures to matrix with only the conutry & products I get blanks, then if I change the rows date then I get numbers. Obviously this is not what is needed.

 

Any help would be appreicated.

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ringovski , it seems like you are looking for Hybrid display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@ringovski , it seems like you are looking for Hybrid display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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