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