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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SurferJames
Frequent Visitor

Conditional Formatting BI

I am fairly new to BI.

 

I have a table that has the following contents:

 

- Orginated time (This is when the call hit)

- Orginator (Customer number)

- Customer

- Age

- Any Disability (Flagged as 'Y' or 'N)

 

I need to create the following conditional formatting

 

- Any customer that has called more than ten times in a single month = red 

- Any customer that has called us more than 5 times in 7 days = yellow/amber

- Any customer that is over 65 and called us more than 5 times in 7 days = red

 

I haven't created any measures or date tables to reference single month or 7 days along with measures to create the conditional formatting.

 

Any help will be greatly appreciated.

 

Thanks,

 

James

2 REPLIES 2
JoeBarry
Solution Sage
Solution Sage

Hi @SurferJames 

 

I'm trying to undestand the 7 days part, is it the last 7 days or is it any 7 day period in a month? 

 

 

I have created two measures like this:

1.

 

Last 30 Days = VAR startdate = TODAY() - 30
return
CALCULATE(COUNT('Contact Log'[Originator]),'Contact Log'[Originated Time]>= startdate)
 
2. 

 

Last 7 Days = VAR startdate = TODAY() - 7
return
CALCULATE(COUNT('Contact Log'[Originator]),'Contact Log'[Originated Time]>= startdate)
 
Now I want to conditional format it but I can't seem to use two measures, how would I combine them with the rules I want in the original message?
 
 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors