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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Bjorn_80
New Member

How to flag a product based on the value of 2 measures

Hello, 

 

I need to flag a product as "non-recurrent" if it has no sales in 2 different timeperiods. 

 

This is the AS IS : 

* I have a flat table containing products, a customer, an order date and sales amount

* using an inactive relationship I amanged to compare the sales of 2 periodes using 2 measures = SalesPeriod1 and SalesPeriod2 (each period is defined by a slicer - for instance Periode 1 = Q1 2023, Period 2 = Q1 2022 

Bjorn_80_0-1684169835240.png

 

 

 

Bjorn_80_1-1684170573180.png

 

My questions : 

1. I would like to "tagg" each line in my report where the sales of period 1 or 2 is zero (if that is possible)

2. create  a measure that only return de PQ_Variance_Sales of the sales in period 1 or 2 is zero 

--> in the above screenshot this would result that the yellow amount would staty, and the red underlined amount would be zero 

 

Thanks for the support and/or advice 

 

Regards

Bjorn 

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Bjorn_80 You can create a "Flag" column using something like a Complex Selector. The Complex Selector - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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