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
Jumper
Helper I
Helper I

Filtered calculation range - improving the DAX

Hi all

 

I just created a quick measure but the DAX appears very cumbersome.  I have very litle experience with DAX, so i'm hoping for some help to refine the formula.

 

I got as far adding up to 9 with the quick measure, but when I saw the formula I realised it will be a bit silly counting out all numbers up to the current max (which is around 1500).

Jumper_0-1691555611014.png

 

I basically need three ranges:

- minimum to 60 

- 60 to 100

- 100 to max

 

 

Any suggestions to improve my DAX?

1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Jumper ,

 

You could write something like this:

WIP value 0 t0 60 =
CALCULATE(SUM(fact service WIP daily snapshot[WIP at Sell]), 
fact service WIP daily snapshot[DaysNoLabour] >=0  &&  fact service WIP daily snapshot[DaysNoLabour] <=60)

 

Hope this helps!

Accept this answer as a solution if it solves your query. Kudos are always appreciated!

 

Thanks!

 

View solution in original post

2 REPLIES 2
Jumper
Helper I
Helper I

Perfect!!! Thanks for your help 🙂

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Jumper ,

 

You could write something like this:

WIP value 0 t0 60 =
CALCULATE(SUM(fact service WIP daily snapshot[WIP at Sell]), 
fact service WIP daily snapshot[DaysNoLabour] >=0  &&  fact service WIP daily snapshot[DaysNoLabour] <=60)

 

Hope this helps!

Accept this answer as a solution if it solves your query. Kudos are always appreciated!

 

Thanks!

 

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.