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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors