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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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