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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

New to DAX - Trying to combine filter/count/if

Hello,

 

Thanks for taking the time to read my post. I am new to DAX and have been trying to use sums/filters/ifs to identify jobs that procurement need to focus on. I have added a snip of some example data (The real data has hundreds of jobs) and an example of what I am trying to do. The first table is an example of the data, I am then trying to filter to each job, sum the required column, and then sum the quantity column (But sum only to the max of the required column). Then I would add a readiness column (Quantity Sum/Required Sum) as a percentage and sort by lowest. If you could please have a look and let me know how to do this, or where I can look to get some help I would greatly appreciate it.

 

AndrewMack_0-1617574589270.png

 

1 REPLY 1
Anonymous
Not applicable

Hi, 

I created an example document on how you can achieve this. 

https://1drv.ms/u/s!AnIEh6WhI4Jog5Vz1k9Ap5T1xyjDag?e=ZL0jZj 

Essentially, I added a column =

Quantity2 = IF(ExampleDate[Quantity]>ExampleDate[Required],ExampleDate[Required],ExampleDate[Quantity]) 

Then I created a measure = 
Readiness = SUM(ExampleDate[Quantity2])/SUM(ExampleDate[Required])
Karlos_1-1617584258171.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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