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
Craigc3814
Regular Visitor

Filter If Formula

I have this formula as a column so that I can slice data using it. I need the formula to only calculate when the Curr Phase column = Planning. I know it is simple but I cannot get it

 

PlanningChg2 = IF(OR(MSD_ALL_CAP_TRANS_BAC[Dollar Diff]>500000, MSD_ALL_CAP_TRANS_BAC[BudgetChgall % difference from BudgetChgBase]>.5),"Yes",IF(OR(MSD_ALL_CAP_TRANS_BAC[Dollar Diff]<-500000,MSD_ALL_CAP_TRANS_BAC[BudgetChgall % difference from BudgetChgBase]<-.5),"Yes","No"))

6 REPLIES 6
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

@Craigc3814  - would this work?

 

 

PlanningChg2 = 
IF ( MSD_ALL_CAP_TRANS_BAC[Curr Phase] <> "Planning",
"No",
IF (
OR ( MSD_ALL_CAP_TRANS_BAC[Dollar Diff]>500000,
MSD_ALL_CAP_TRANS_BAC[BudgetChgall % difference from BudgetChgBase]>.5),
"Yes",
IF (
OR( MSD_ALL_CAP_TRANS_BAC[Dollar Diff]<-500000,
MSD_ALL_CAP_TRANS_BAC[BudgetChgall % difference from BudgetChgBase]<-.5),
"Yes",
"No")
)
)

 

When the Curr Phase is Planning I need it to do the rest of the calc, when it is not planning I need it to say "No"

sorry replace = "Planning" with <> "Planning".

Thank you that worked but did not solve the overall problem I am running into, I was unaware you could not use measures as a slicer and it is wreaking havoc on my day

You are using this to create a Calculated Column.  The Column can be used in the Slicer?

The calculated column was my attempt at a work around. I have a ton of page level filters that I would need to incorporate for it to work right.

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.