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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Syndicate_Admin
Administrator
Administrator

Get Maximum Budgets with Conditionals

Alirio_92_0-1680556321754.png

Greetings, I am having difficulty getting the budgeted maximum budgets due to the following conditions.

1. the paceinte 8 has 3 treatments two already started therefore I must porder filter the payments, use this function to filter them

Alirio_92_1-1680556856509.png

2. Patient 77 has not made payments needs to filter the maximum treatment of this.

The intention with this is to calculate the maximum budgeted treatments by patients, if a patient started treatments and has not started the incites will be taken, if the patient does not start any treatment will take only the maximum since I did not start any.

Alirio_92_2-1680557201046.png

I try with this equation where I ask you to place 1 and 0, but it does not work when the patient has never started a treatment.

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Syndicate_Admin In general MAXX(FILTER(...), ...) or MAXX(SUMMARIZE(FILTER(...), ...), ...) Hard to be more specific without mocking it up. Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Current status Alirio_92_0-1680636072860.png

Expected

Alirio_92_1-1680636213211.png

I need to be able to filter the budgets to which payments were made and if no payment is made show me the largest budget for that patient.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.