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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jpahl2033
Helper I
Helper I

Have only certain items show that meet a threshold

hi,

 

I was curious if it possible to create a report where the only items that show up that meet a certain threshold when the data is refreshed. I have provided a small sample set for reference along with a example below. 

 

 7/20/20227/21/20227/22/20227/23/20227/24/20227/25/20227/26/20227/27/20227/28/2022
Item A310143231523
Item B34521221522
Item C410121222222

 

So i have 3 items that i want to put into a table. The threshold is 2 item difference from the day before. The data will refresh for the day before. How do i get it where let's say on 7/24/2022 the data is loaded for 7/23/2022, only item A & B show up and not Item A? Another example is on 7/27/2022 data is loaded for 7/26/2022 only Item A & Item B show up in the table? Or really any way to showcase in the table that the threshold was met. 

 

Let me know if you have any questions or comments. Happy to explain more! 

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

Hi @Jpahl2033 ,

 

My idea is to mark out these values using conditional formatting.

Please try this measure:

Colour = 
VAR _date =
    MAX ( 'Table'[Date] )
VAR _p_date = _date - 1
VAR _value1 = [Measure]
VAR _value2 =
    CALCULATE (
        [Measure],
        'Table'[Date] = _p_date,
        ALLEXCEPT ( 'Table', 'Table'[Item] )
    )
VAR _result =
    IF ( ABS ( _value1 - _value2 ) >= 2 && _value2 <> BLANK (), "red" )
RETURN
    _result

Application Condition Format:

vcgaomsft_1-1659061920497.png

Result:

vcgaomsft_0-1659061724705.png

The PBIX file is attached for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

3 REPLIES 3
Jpahl2033
Helper I
Helper I

Thank you very much. This worked! 

v-cgao-msft
Community Support
Community Support

Hi @Jpahl2033 ,

 

My idea is to mark out these values using conditional formatting.

Please try this measure:

Colour = 
VAR _date =
    MAX ( 'Table'[Date] )
VAR _p_date = _date - 1
VAR _value1 = [Measure]
VAR _value2 =
    CALCULATE (
        [Measure],
        'Table'[Date] = _p_date,
        ALLEXCEPT ( 'Table', 'Table'[Item] )
    )
VAR _result =
    IF ( ABS ( _value1 - _value2 ) >= 2 && _value2 <> BLANK (), "red" )
RETURN
    _result

Application Condition Format:

vcgaomsft_1-1659061920497.png

Result:

vcgaomsft_0-1659061724705.png

The PBIX file is attached for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Hi @v-cgao-msft ,

 

your solution worked! I did have a follow up. Using the table in the original post, lets say I am grouping days  so for instance, the first 3 days are week 1, the next 3 days are week 2, the last 3 days are week 3. Is there a week to tweak your solution above to have a weekly variance threshold?

 

Thanks! 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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