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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.