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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

measures on rows matrix

Hi, 

 

Is it possible to have measures on rows in a matrix? 

I know there is an option in format-values and turn on "show on rows"

But what I further want to achieve is for example:
            this month    last year   TYD TYD-1
sales
cost
result

 

Sales Cost and results are all measures..

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I was assuming that those were columns on your data, can you please a sample share, as @amitchandak  you need to make a use between switch function and an auxiliary table.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

6 REPLIES 6
MFelix
Super User
Super User

Hi @Anonymous ,

 

On the Matrix option find the option SHOW ON ROWS if you activate that, the measure will be shown as you need.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Tnx, I only get one column with the measures.

 

I need  columns for example: last year, TYD and TYD-1

One option is union and summarize

 

union ( summarize( table[group_by1],table[group_by1],"measure","Sales","MTD",<MTD formula>, "YTD",<Ytd Formul>...),

summarize( table[group_by1],table[group_by1],"measure","Cost","MTD",<MTD formula>, "YTD",<Ytd Formul>...)

...

 

)

Group, add constant value for measure name and MTD, QTD, YTD, last year etc.

 

 

Hi @Anonymous ,

 

I was assuming that those were columns on your data, can you please a sample share, as @amitchandak  you need to make a use between switch function and an auxiliary table.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



amitchandak
Super User
Super User

There is property "show on row".  that can help.

 

But what you are writing splitting meaures into both row and column

Anonymous
Not applicable

Yes, splitting measures into both row and column.

 

Possible workaround would be creating a table with measures names and then using switch.

I was hoping there is another quick way.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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