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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JustinDoh1
Post Prodigy
Post Prodigy

Filter option to take Max range only

I am trying to create Dax calculated measure where I originally have two ranges to bring in as condition.

I was able to create Dax calcuated measure with both Min and Max range, but I would like to only use Max.

 

Here is an illustration:

Tables.png

I was able to use this DAX and it worked fine.

Measure =
   CALCULATE(
            VALUES(Star[Value]),
   FILTER(
       Star,
       Star[Min] <= Sum(Test[Test])
        && Star[Max] >= SUM(Test[Test])
    )
)

 

But, I would like to only use one column (Max) instead of using two columns (with Min).

So, this is what I am trying to envision.

MeasureNEW =
  CALCULATE(
           VALUES(Star[Value]),
  FILTER(
     Star,
     Star[Max] >= MAX(Test[Test])
   )
)

 

How do I accomplish it?

 

 

4 REPLIES 4
Anonymous
Not applicable

@JustinDoh1 

 

There is no such thing as "a calculated measure." There are measures or calculated columns/tables.

Thanks for correction. All new for me now 🙂

wdx223_Daniel
Super User
Super User

MeasureNEW =
  CALCULATE(
           MIN(Star[Value]),
  FILTER(
     Star,
     Star[Max] >= MAX(Test[Test])
   )
)

@wdx223_Daniel 

I got value of all 1 as results instead.

Result.png 

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.