Forum Discussion

Red217's avatar
Red217
Icon for Helper III rankHelper III
4 years ago
Solved

SelectedValue from a SPECIFIC PAGE

Hi, 

 

i have several pages with the same Slicer,

i am NOT syncing them, by design because each report has different outputs based on the slicer.

 

i need to have one report to "get them all together" , and this is where its tricky, i cant "tell" the measure - get the "slicer value" from that specific page.

 

* the temp workaround is "Filters on this visual", it works ,i can tell each visual which "slicer selection" needs to be, all on the same page. but i hate this approach, i prefer to have a Dax measure for it

 

what do you suggest, would love your help

Thanks

 

  • Red217 You are on a good track, having visual level filters can be confusing, so better to create measures that are pre-filtering your data:

     

    for example, the sum of sales of active products

     

    Active Product Sales = CALCULATE( SUM ( Table[Sales] ), Product[Status] = "Active" )

     

    Measure like above, you are filtering on active products rather than having a visual level filter where status = active. Use a similar approach, create your measures based on your business logic, and use in the visuals.

     

    ✨ Follow us on LinkedIn

     

    Learn about conditional formatting at Microsoft Reactor

    My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    ⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡

3 Replies

  • Red217 You are on a good track, having visual level filters can be confusing, so better to create measures that are pre-filtering your data:

     

    for example, the sum of sales of active products

     

    Active Product Sales = CALCULATE( SUM ( Table[Sales] ), Product[Status] = "Active" )

     

    Measure like above, you are filtering on active products rather than having a visual level filter where status = active. Use a similar approach, create your measures based on your business logic, and use in the visuals.

     

    ✨ Follow us on LinkedIn

     

    Learn about conditional formatting at Microsoft Reactor

    My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    ⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡

    • Red217's avatar
      Red217
      Icon for Helper III rankHelper III

      Hi, 

       

      i managed to get the syntax right and it works like charm !!! 😉 , thanks for giving me the direction.

       

      this is my syntax:

       

      calculate(
      SUMX(
      SUMMARIZE(
      'Table','table'[date],
      "xxx", [measure]
      ),
      [xxx]
      ),
      'table'[Column] = "value")

       

    • Red217's avatar
      Red217
      Icon for Helper III rankHelper III

      Hi, 

      thank you for the quick reply.

       

      the measure that i trying to filter is the following:

      measure = SUMX(
      SUMMARIZE('table','table'[expression],
      "XXX", [another measure] ),
      [XXX] )

       

      what is the syntax / way to add a filter to this measure by slicer ?