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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Petanek333
Helper III
Helper III

Variable values in a measure

Hi,

I would like to use a something like a variable measure based on values I select. 

I have 4 tables (Alpha, Bravo, Charlie, Delta) like this: 

Petanek333_0-1667580517706.png

each containing stock number of certain product and its sales.

Combined in a table like this:

Petanek333_1-1667580620105.png

Last column is a measure dividing all inventories (Inventory of Alpha, Bravo, Charlie and Delta) by all sales. But I would like to be able to select which of the inventories are going to be divided by which of the sales. 

In the example above I would like the Dividing measure to show a value calculated like (Alpha Inv + Charlie Inv) / (Bravo Sales + Charlie Sales + Delta Sales)

I don't want to use Filed parameters with predefined combinations since in my model there are many categories like Alpha, Bravo etc.

In an ideal scenario I would like the table to always show all of the inventory and sales categories (columns) but just the measure would be calculated based of a selection of inventory and sales groups.

 

Here is the sample file: File 

 

Any help would be greatly appreciated. 

2 REPLIES 2
aj1973
Community Champion
Community Champion

Hi @Petanek333 

Your 2 tables for your 2 slicers are not joined to any!!!

aj1973_0-1667582340849.png

Therefore no reaction to your Matrix would occure

Sorry but your Model is not good either.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi @aj1973 ,

the model is just a simplified sample used to describe what I want want to achieve.

And I created those two tables for slicers just to demonstrate that I want to be able to select measures involved in a desired calculation.  

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors