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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vishy0501
Helper I
Helper I

Condition Breach Rule - DAX conditional Lookup

test.PNGHi ALL,

 

I am stuck  with a scenario wherein I need to identify whether the user has breach a particular condition in previous month.

In the dataset i have three rows for each user for three month. Each month the fact value is different and i have created a calculated column which tells whether the user adheres or not . Based on that calculated column i need to find how many times the user has breached the policy. So if the user has "HIGH risk" as the value in that column in past two months I need to highlight that particular user..

 

Note I have two different date columns and it needs to be calculated using these two different date.

 

Attached is the sample dataset as well

 

Name PlanMI_SUBSCRIPTION_IDCHARGED_MBUNIQUE_CALLSTOT_INCOMING_CALLSTOT_OUTGOING_CALLSOG_CHARGED_MINSIC_CHARGED_MINSMI_FROM_DATEMI_TO_DATEAbuser Descr
Rose123456701-Oct31-OctFair Use
Rose134567831-Oct30-SepHigh Risk
Lotus3447981201-Oct30-NovHigh Risk
Rose1123455601-Aug30-AugHigh Risk
2 REPLIES 2
kentyler
Solution Sage
Solution Sage

your second row covers 2 months, 31 oct -> 30 sept, is both oct and sept. what is your logic for determining the "month" of each row ?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Hi @kentyler  - 

 

I am using Single active relationship between my date dim and from date. And calculating the values accordingly.

 

Image.PNG

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors