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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.