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
brickanalyst
Resolver I
Resolver I

Is it possible to let users to select columns to be used in the measure?

Hey, 

I woke up to this crazy idea this morning. So, imagine we have a very easy calculation. Let's say we have 2 slicers and we select A from the first slicer, and B from the second slicer. And our measure simply will summarize these two; 

 

measure = [Selected Column in the first slicer] + [Selected Column in the second slicer]

 

Please let me know if this is possible, it doesn't matter you have an answer I want to try it. 

Any ideas?

1 ACCEPTED SOLUTION
brickanalyst
Resolver I
Resolver I

I did similar what you guys mentioned. Let's say 5 different measures and depending on your selection you can bring how many measures you can and compare between each other. I wanted to do that way yes but I'm talking about 100 measures here. Yes we can create 100 measures and throw them into the slicer that's a solution.

 

What I was thinking not the measure is created and pickem them up via selecting them in the slicer, but selected column names that will be used in the measure (same calculation) and that will bring the result after you selected.

I guess that's not possible, if you guys agree then we can close this ticket: solution is dynamic measure.
Please let me know, thanks !
@Greg_Deckler 
@Ritaf1983 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @brickanalyst ,

 

Yes, as you said. Dynamically selecting specific column names based on the slicer is not possible. The solution is dynamic measurement.

 


Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

brickanalyst
Resolver I
Resolver I

I did similar what you guys mentioned. Let's say 5 different measures and depending on your selection you can bring how many measures you can and compare between each other. I wanted to do that way yes but I'm talking about 100 measures here. Yes we can create 100 measures and throw them into the slicer that's a solution.

 

What I was thinking not the measure is created and pickem them up via selecting them in the slicer, but selected column names that will be used in the measure (same calculation) and that will bring the result after you selected.

I guess that's not possible, if you guys agree then we can close this ticket: solution is dynamic measure.
Please let me know, thanks !
@Greg_Deckler 
@Ritaf1983 

Hi @brickanalyst 
I doubt there is something better than What-if parameters for this goal...

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @brickanalyst 
It sounds something like a dynamic measure/field parameter/parametrs .
Take a look at these videos:

https://www.youtube.com/watch?v=28PDdA3SROU&t=5s
https://www.youtube.com/watch?v=ODNsd1G4tDM&t=199s

https://www.youtube.com/watch?v=TLiqqIsk1CU&t=579s

For more specific suggestion 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Greg_Deckler
Community Champion
Community Champion

@brickanalyst If it is possible, and that's a big if, then I would think it would have to involve Field Parameters.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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