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
minolim
New Member

If over 100% by campaign end date, then 100%, else original value

Hi everyone,

 

I have a data model with 4 tables:

 

Media Plan Table

Campaign NameCampaign IDStart DateEnd DateBudget AvailableNew Clients Target

 

Media Plan Pivot

Campaign IDDateTarget Spend per DayTarget New Clients per Day

 

Calendar Table

DateYearMonthDayQuarterYear Half

 

Campaign Data

Campaign IDDateActual SpendNew Clients 

 

Using the informatino from Media Plan Pivot and Campaign Data I am able to create the following measure:

 

Pacing - New Clients = DIVIDE(New Clients, Target New Clients per Day)

 

This gives me an easy understanding of how my campaign is pacing vs our target for each day by using a time slider. For example:

 

01/01/2022 - 98% achieved vs target (we are sligthly underpacing)

01/01/2022 to 04/04/2022 - 143% achieved vs target  (we are over pacing vs campaign target)

 

What I would like to do is the following:

 

IF Pacing - New Clients is over 100% by the End of that campaign, then put 100% ELSE put the original pacing amount.

 

Any idea of how to make it happen?

 

1 REPLY 1
Anonymous
Not applicable

Hi @minolim ,

 

What's the data in the New Clients field and the Target New Clients per Day field?

Numbers or text you want count?

Try to use the SUM() or COUNT() to get the values. Then use the IF() to return different results.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.