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
hugus
Helper I
Helper I

calculate measure to summarise count per day

Hi

this should be simple....cannot understand why it isnt.

i want to produce a bar chart, x axis is day of month, y-axis is total count of events over the day.

 

if the total count is above a set target, i want the bar green. if below, red.

 

I thought i could create a measure to say sum the total count over the day - but for some reason it does not let me do this....i woiuld then do: green column= if(count>target, count,0) and red column = if(count<target,count,0)

 

i cant even select the [count] column when i try create a measure....so i tried creating a column instead and gives me incorrect data.

 

why cant i select [count] when i create a measure?? help please - going insane!!

 

5-04-2019 3-48-10 PM.png

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @hugus ,

 

Does constant line meet your requirement?

 

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

hi @v-frfei-msft 

 

no this doesnt do it....the line will need to be different for each day as the target is changing....

 

Hi @hugus ,

 

Where the target comes from? Does using a What if parameter work in your scenario?

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors