Forum Discussion

mlim0806's avatar
mlim0806
Frequent Visitor
1 year ago
Solved

Create new dynamic measure using slicer settings

Hi community,

This is a tricky one. Appreciate any thoughts or other suggestions to acheive this idea. 

 

I have a sample dataset below. I have a set population for Group A and Group B folks, and I want to create a Group C. But to see what that population may look like, I want to plug and play with the different column headers.

For example: Group A= all Tier 1's, Group B= all Tier 1's with 10+ years runway, Group C= all Tier 1's, with different variations of slicer selections. 

 

Can I create a new measure that will embed the slicers that says, Group B = ([highest level slicer], [runway (years) slicer], [compliance grade slicer], [program participant slicer], [total plans slicer]). And based on what I select in the slicers will dynamically create my Group C?

 

IDGroup AGroup Bhighest levelrunway (years)compliance gradeprogram participanttotal plans
1yesyestier 111Fyes3
2yesnotier 17Fyes4
3nonotier 26Fyes4
4nonotier 211Cyes4
5yesyestier 125Eyes2
6nonotier 36Dyes2
7nonotier 38Cno2
8yesyestier 110Gno2
9nonotier 310Fyes1
10yesyestier 120Fyes1
11yesyestier 115Gno4
12yesyestier 110Cno5
  • Hello mlim0806,

     

    Yes you can achieve this using a dynamic DAX measure. Can you please try the following:

    Group C Count =
    CALCULATE (
        COUNTROWS ( YourTable ),
        YourTable[highest level] = "tier 1",
        KEEPFILTERS ( VALUES ( YourTable[runway (years)] ) ),
        KEEPFILTERS ( VALUES ( YourTable[compliance grade] ) ),
        KEEPFILTERS ( VALUES ( YourTable[program participant] ) ),
        KEEPFILTERS ( VALUES ( YourTable[total plans] ) )
    )
    

     

5 Replies

  • Why would you need [Group A] and [Group B]?  Why not base your slicers on [highest level] and [runway]  choices?

  • Hello mlim0806,

     

    Yes you can achieve this using a dynamic DAX measure. Can you please try the following:

    Group C Count =
    CALCULATE (
        COUNTROWS ( YourTable ),
        YourTable[highest level] = "tier 1",
        KEEPFILTERS ( VALUES ( YourTable[runway (years)] ) ),
        KEEPFILTERS ( VALUES ( YourTable[compliance grade] ) ),
        KEEPFILTERS ( VALUES ( YourTable[program participant] ) ),
        KEEPFILTERS ( VALUES ( YourTable[total plans] ) )
    )
    

     

  • v-menakakota's avatar
    v-menakakota
    Community Support

    Hi mlim0806 ,

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

    • v-menakakota's avatar
      v-menakakota
      Community Support

      Hi mlim0806 ,

      I wanted to check if you had the opportunity to review the information provided Sahir_Maharaj. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution so other members can easily find it.

      Thank you.

      • v-menakakota's avatar
        v-menakakota
        Community Support

        Hi @mlim0806 ,

        May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

        Thank you.