cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Surafel
Helper II
Helper II

Show a date where the forecasted remaining capacity starts to fall below 20%

Date                    Remaining Capacity % 
24/01/202157 
25/01/202165 
26/01/202275 
27/01/202224 
28/01/202254 
29/01/202287 
30/01/202212 
31/01/20228 
1/02/20226 
2/02/20224 
3/02/20222 
4/02/2022-2 
5/02/2022-7 
6/02/2022-10 
7/02/2022-20 
8/02/2022-60 

 

Surafel_1-1643252592613.png

 

 

 

I want to indicate the date when the remaning predicted capacity percent starts to fall below 20%, as shown in the graphic above.
Please, if anyone knows how I can accomplish this with DAX, please let me know.

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Surafel 

 

According to your description, I think you can create a measure to show the result.

Like this:

 

Measure = 
MINX (
    FILTER (
        SUMMARIZE ( 'Table', [Date], [Remaining Capacity %] ),
        [Remaining Capacity %] < 20
    ),
    [Date]
)

 

If [Remaining Capacity %] is a measure.

Try:

 

Measure2 = 
MINX (
    FILTER (
        SUMMARIZE ( 'Table', [Date], "a", [Remaining Capacity %measure] ),
        [a] < 20
    ),
    [Date]
)

vjaneygmsft_0-1643782423111.png

 

 

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @Surafel 

 

According to your description, I think you can create a measure to show the result.

Like this:

 

Measure = 
MINX (
    FILTER (
        SUMMARIZE ( 'Table', [Date], [Remaining Capacity %] ),
        [Remaining Capacity %] < 20
    ),
    [Date]
)

 

If [Remaining Capacity %] is a measure.

Try:

 

Measure2 = 
MINX (
    FILTER (
        SUMMARIZE ( 'Table', [Date], "a", [Remaining Capacity %measure] ),
        [a] < 20
    ),
    [Date]
)

vjaneygmsft_0-1643782423111.png

 

 

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

lbendlin
Super User
Super User

No DAX required, all you need is conditional formatting. See attached.

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!