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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors