Help on Slicers – to show selected values on Slicer selection

  • Help on Slicers – to show selected values on Slicer selection

    Posted by DSC Communities on October 20, 2022 at 4:20 am
    • Prem Guru

      Member

      October 20, 2022 at 4:20 AM

      Hello,

      See attached PBI file for your reference.

      I’ve two different tables. Relationship is created with Date table.

      2 slicers are added, one from Table3 and one from Table4.

      In attached – when I select “BATCHELOR Jeff” from Table 3 Slicer, the chart should only show values from this slicer. But we could see values of Table4 are also getting reflecting in the chart

      For instance we have selected “BATCHELOR Jeff”, so the value should only populate 21 of Mar-22 (as we have only 1 record of this customer in Mar-22)

      Similarly if we select Customer Name from Table 4 Slicer, values should reflect of Table 4.

      Any idea. Thanks!

      ——————————
      Prem Guru
      ——————————

    • Mark Wiley

      Member

      October 21, 2022 at 5:12 AM

      Hi Prem,

      I added two similar measures:

      Table4 Weight =
      VAR CurCust = SELECTEDVALUE( ‘Table3’[Customer Name])
      RETURN
      IF(
      Ā  Ā  ISFILTERED( ‘Table3’[Customer Name]),
      Ā  Ā  CALCULATE( SUM( ‘Table4’[Weight] ),FILTER( ‘Table4’ ,[Customer Name] = CurCust )),
      Ā  Ā  SUM( ‘Table4’[Weight] )
      )
      Table3 Weight =
      VAR CurCust = SELECTEDVALUE( ‘Table4’[Customer Name])
      RETURN
      IF(
      Ā  Ā  ISFILTERED( ‘Table4’[Customer Name]),
      Ā  Ā  CALCULATE( SUM( ‘Table3’[Weight] ),FILTER( ‘Table3’ ,[Customer Name] = CurCust )),
      Ā  Ā  SUM( ‘Table3’[Weight] )
      )

      And this seems to give you what you want. (attached)

      Hope that helps,

      ——————————
      Mark Wiley
      Senior Solutions Architect
      GraVoc
      OH
      ——————————
      ——————————————-

    • Prem Guru

      Member

      October 21, 2022 at 6:55 AM

      ,

      ?Thank you for investing your time! I’ve applied the measure to my sample file and getting the desired result.

      I’m still working on making changes to my actual dashboard and hopefully this gets resolved šŸ™‚

      Many Thanks! once again.

      ——————————
      Prem Guru
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Help on Slicers – to show selected values on Slicer selection’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!