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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vikramsharma18
Frequent Visitor

Advanced Matrix

Is this matrix Possible. Here are the Rows values of Net Sales, covers, Average Spend per hour, Provisional Labour Cost, % Of Sales, and Provisional Labour Hours.
Columns Will be Mon to Sun and WTD, Last Year's WTD, Variance with Last year's WTD,% of Variance with Last year's WTD, WTD Budget, Variance with WTD Budget,% of Variance with WTD Budget.
How to Solve this?

vikramsharma18_0-1665776039024.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @vikramsharma18 ,

 

There are several approaches to your use case

  • calcualation groups
  • field parameters
  • a custom visual (there is one but needs subscription if used in the web based on the number of users)
  • or some advanced DAX with the use of disconnected tables and several to a handful measures -  i used to have actual similar use cases in the past the solution wasn't exactly the fastest.  Here's a screenshot of what I did danextian_0-1665826486580.png

    I can't share with you the pbix as the data is confidential and the solution took some time to come into fruition. But here's a sample pbix of a similar but very simple use case.  https://1drv.ms/u/s!AqxKG9R1145foQvISJkkuSEpEUQy?e=5YwIdj 
    Notice in that first column chart below the total is one of the columns. The second chart is how it is normally done.

    danextian_1-1665826699503.png




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
danextian
Super User
Super User

Hi @vikramsharma18 ,

 

There are several approaches to your use case

  • calcualation groups
  • field parameters
  • a custom visual (there is one but needs subscription if used in the web based on the number of users)
  • or some advanced DAX with the use of disconnected tables and several to a handful measures -  i used to have actual similar use cases in the past the solution wasn't exactly the fastest.  Here's a screenshot of what I did danextian_0-1665826486580.png

    I can't share with you the pbix as the data is confidential and the solution took some time to come into fruition. But here's a sample pbix of a similar but very simple use case.  https://1drv.ms/u/s!AqxKG9R1145foQvISJkkuSEpEUQy?e=5YwIdj 
    Notice in that first column chart below the total is one of the columns. The second chart is how it is normally done.

    danextian_1-1665826699503.png




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Good post! The easiest way for him would be calculation groups, it's also the one solution which requires the least effort and no custom visuals.

lukiz84
Memorable Member
Memorable Member

Possible with calculation groups where you add "Mon", "Tue", ... "Week to date", "Last year WTD" ,... "var %" as calculation items for your Measures ([Net sales], [Covers] and so on).

 

See Calculation Groups - SQLBI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.