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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Matrix only shows columns for one value

Hi all,

 

I have a matrix table and in values I have amount for purchase and amount for budget. If I use month as column it splits up both purchase and budget per month. Can I split only purchase per month and leave budget as total value?

 

Udklip.JPG

7 REPLIES 7
Greg_Deckler
Super User
Super User

@Anonymous  Why yes you can! I invented The New Hotness for just this purpose. https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler , Im gonna try it out! 

 

@Anonymous  - Let me know if you run into issues. It's essentially a spin on the disconnected table trick!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler 

Not quite sure if Im doing it correctly but 1) I created a new table "Custom Hierarchy".
Udklip3.JPG

2) I then created a measure using "BudgetteretForbrug" as the value I want to sum amd dates Im using - perhaps I should be creating the date hierarchy in table "Calender_G_LEntries" instead of creating a new table "Custom hierarchy"? 

Udklip1.JPG

However, in my last line "__Month" is not being found: 
Udklip2.JPG

 

Thanks!
 

 

Looking at your code, your __Month variable is only defined within the code up until the RETURN statement that follows it. After that the rest of the code cannot "see" the __Month var. Hopefully that helps. So you would need to redefine it essentially somewhere that it can be "seen" by that line of code.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

Anonymous
Not applicable

I voted for it now! 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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