Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I am creating a line chart with a count of tickets on the y-axis and date on the x-axis.
With legend for different employees.
Not all employees are working on all days, so the count is sometimes blank/empty.
In the example below the lines are interupted with loose datapoint. .
How can I visualise these empty counts as 0, so the lines of the charts will not be interrupted.
I think it must be easy, but somehow I can't make it work.
Regards,
Yvonne
Solved! Go to Solution.
@Yvonne24 , Add +0 to your measure
or create a measure like an example
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))
Hi,
Thank you. However how do I insert this in my table/model?
Sorry, I am not that experienced yet...
As some of the dates/times are not in my data at all, for instance around midnight not al hours have a ticket. As my data sort of looks like this at night (see table). However during the day every (few) minutes a ticket comes in.
So during nights, how so I implement the code you wrote?
Regards,
Yvonne
@Yvonne24 , Add +0 to your measure
or create a measure like an example
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |