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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
andremota270
New Member

How can I write this logic in DAX?

Greetings,

 

I am very new to DAX. Can someone please help me with the writing of the following logic?

 

What I have:

  • A value that needs to be distributed between 4 categories, following an order: A->B->C->D.
  • The maximum value possible for each category;

What I need:

  • A column that describes the distribution, showing what value we will have for each category, respecting the order and all the maximum values. 

To make it easier to understand, I am attaching a photo that contains a couple of practical exemples.

exemples.jpg

Thank you very much!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Have a look at this similar question, it should work.

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Have a look at this similar question, it should work.

It did work! Thank you very much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.