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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Switching Measure

How to create a container that can switch the values in a line graph?

 

See below:

Laedays_0-1625481231720.png

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous,

 

You can use selectedvalue to create a measure, just like:

Measure = 
var _slicer= SELECTEDVALUE(Slicer[option to view graph])
return
CALCULATE(
    MAX('Table'[Value]),
    FILTER(
        'Table',
        'Table'[option]=_slicer
    )
)

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous,

 

You can use selectedvalue to create a measure, just like:

Measure = 
var _slicer= SELECTEDVALUE(Slicer[option to view graph])
return
CALCULATE(
    MAX('Table'[Value]),
    FILTER(
        'Table',
        'Table'[option]=_slicer
    )
)

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.