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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors