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

Slicer with measures that controls the same measures in graph

I have created this graph and a slicer with the same measures. Now I want to control with the slicer the measures. So I want to select for instance actual cumulative and target cumulative so that only these will show in the graph like they are now showing in the graph 1

 

Graph1

PrinceII_0-1632138589708.png

 

Example DAX of 1 measure I created

Planned cumulative =
var _ac = countx(filter(allselected('Measure'), 'Measure'[Metric] ="Planned Cumulative"),'Measure'[Metric])
return
CALCULATE(
    SUM('ISOD vwISO Actual vs Planned 2'[Planned]),
    FILTER(
        ALLSELECTED('ISOD vwISO Actual vs Planned 2'[NextFridayDate]),
        ISONORAFTER('ISOD vwISO Actual vs Planned 2'[NextFridayDate], MAX('ISOD vwISO Actual vs Planned 2'[NextFridayDate]), DESC)
     )
)
 
How am I able to use the slicer that shows the selected measures in the graph like the visual (but then only the ones I selected)
 
The slicer is a table created with only the names of the easures used in the graph

 

 

 

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

Hi @PrinceII

 

Is your issue solved?

If the issue has been solved, please adopt the solution to help others.

Thanks!

 

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!

 

 

Greg_Deckler
Super User
Super User

@PrinceII So typically you would have a disconnected table for you slicer and then do something like:

Measure =
  VAR __Selected = 'SlicerTable'[Measures]
RETURN
  IF("Measure" IN __Selected,
    <calculation>,
    BLANK()
  )

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

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.