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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mlim0806
Frequent Visitor

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
1 ACCEPTED SOLUTION
Sahir_Maharaj
Super User
Super User

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] ) )
)

 


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

View solution in original post

5 REPLIES 5
v-menakakota
Community Support
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.

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.

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.

Sahir_Maharaj
Super User
Super User

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] ) )
)

 


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
lbendlin
Super User
Super User

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.