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
jothi_prakash_a
Frequent Visitor

Measures in a table by row level

I have the following measures.

 

FlagCount, AvgVal, Decile

 

And I want these measures in like a table format in row level.

 

Something like this.

 

ColumnNameMeasures
Column1FlagCount
Column2AvgVal
Column3Decile

 

The above table will be used in a bar chart and the dashboard has slicers. how can I achieve this?

Thank you!

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi @jothi_prakash_a,

you can create a separate table, with the measure names on the rows.

Create a new measure like this:

MainMeasure = 
VAR _measure =
    CALCULATE ( SELECTEDVALUE ( MeasuresTable[Measures] ) )
RETURN
    SWITCH (
        TRUE (),
        _measure = "Measure1", [Measure1],
        _measure = "Measure2", [Measure2],
        _measure = "Measure3", [Measure3]
    )

 

An example 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

 

View solution in original post

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi @jothi_prakash_a,

you can create a separate table, with the measure names on the rows.

Create a new measure like this:

MainMeasure = 
VAR _measure =
    CALCULATE ( SELECTEDVALUE ( MeasuresTable[Measures] ) )
RETURN
    SWITCH (
        TRUE (),
        _measure = "Measure1", [Measure1],
        _measure = "Measure2", [Measure2],
        _measure = "Measure3", [Measure3]
    )

 

An example 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

 

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.