cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JustinDoh1
Frequent Visitor

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
daxer
Solution Sage
Solution Sage

@JustinDoh1 

 

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

JustinDoh1
Frequent Visitor

Thanks for correction. All new for me now 🙂

wdx223_Daniel
Super User II
Super User II

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors