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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
carlol
Helper IV
Helper IV

Model Design

Issue:
I want to calculate the % of a set of Values based on the fields a user may or maynot added to a Table/Chart

 

For example

If I have three fields , in reality I have 60 plus dimension columns

  1. Product Category
  2. Product
  3. Sales Amount

 

I can create

  • A measure to Calculcate the % of Sales for each product
  • A second measure to Calculcate the % of Sales for each product By Category

Question

Is it possible to create a measure to illustrate % , regardles of the combinations of dimensions , it will illustrate correctlty

( I assume it is called a dynamic Measure)

 

If a user adds product and / OR Category , location ; it will calculate the % in realtime

 

Do I need to create measures for every combination and use a switch statement to toggle between them ? If you have 100 plus diemnsions columns, not sure how feasible this is
What is the best practice to accomodate this?

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I think the ALLSELECTED() function will work.  Share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

standard measures will be able to cover this.  What have you tried and where are you stuck?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.