cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CharlotteB
Frequent Visitor

Table where all lines are different calculations

Hello,

I'm trying to build a table where all of the lines are different calculations (see the below example in excel). This is a stand-alone report with different columns and each line is a different calculation and a different display format. Is there a way to do this in PowerBi?

 

CharlotteB_0-1669843033447.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@CharlotteB Two thoughts, use measures for your rows and the "Show on rows" feature for a Matrix. Otherwise, create a single measure and use something like a SWITCH statement:

Measure = 
  SWITCH(MAX('Table'[Column A]),
    "Amount", <some calc>,
    "#items", <some calc>,
    ...
  )

@ 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...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@CharlotteB Two thoughts, use measures for your rows and the "Show on rows" feature for a Matrix. Otherwise, create a single measure and use something like a SWITCH statement:

Measure = 
  SWITCH(MAX('Table'[Column A]),
    "Amount", <some calc>,
    "#items", <some calc>,
    ...
  )

@ 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...

@Greg_Deckler Thank you! The "show on rows" feature was exactly what I needed.

And I just bought your Mastering PowerBi book! Very informative:) 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.