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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Newbie: Question about DAX formula

Hello guys

I'm new in the community hence I don't have much insight on how to this and I've been exploring options here is the issue that I have:

 

I have a set of data that is divided by associate and week that has a binary logic if they achieve or not productivity: see example below:

Data example.Data example.

 

What I need is a formula to catch the following:

  1. if the first weeks of the data have 3 ones apprearing then show me X text(example text "warning 1")
  2. if the following 4 weeks have 3 ones and the first 4 weeks also have 3 ones then Y text (example text "warning 2")
  3. if the last 4 weeks have 3 ones and both of the previous 8 weeks trail have also 3 sets of ones then Z text (example text "Warning 3")

And also to follow the logic that if point 2 of the above mentioned is the first time that the associate have the first set of 3 ones then to be warning one and to follow as so.

 

Could someone please assist me with this?

Thanks in advance

 
2 REPLIES 2
Anonymous
Not applicable

Here is a link with a CSV that has the raw data and a PBI sandbox that has some edits for security reasons.

PBI data example 

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.