Forum Discussion
Mann
6 years agoResolver III
Issue with Filtering a Line Chart with Fixed Axis
Hi Guys, I am showing distinct count of individuals as per time (5min interval) as per zones. I have three tables: 1) Source: It has data for Individual IDs present in different zones as per...
Mann
6 years agoResolver III
Hi There,
Thanks for checking on this. Unfortunately this solution wont help me since I need shift type in fixedaxis table. I realized the issue is with the measure. If I convert that line chart into table visual and remove this measure then records are getting filtered by shift type as expected.
Thanks for checking on this. Unfortunately this solution wont help me since I need shift type in fixedaxis table. I realized the issue is with the measure. If I convert that line chart into table visual and remove this measure then records are getting filtered by shift type as expected.
v-lili6-msft
6 years agoCommunity Support
hi Mann
For your case, you should create the relationship between Fixedaxis table and Source table by Date Time column and Intervals column.
and adjust the formula as below:
ADZone =
VAR _DisCount =
CALCULATE (
DISTINCTCOUNT ( 'Source'[IndividualID] ),
FILTER(Source,
'Source'[Zone] IN { "A","D" }
))
RETURN
IF ( ISBLANK ( _DisCount ), BLANK(), _DisCount )
Result:
and here is sample pbix file, please try it.
Regards,
Lin
- Mann6 years agoResolver III
Hi v-lili6-msft
Thanks for checking on this. This change is also not helping me since this defeats the purpose of having fixed start and fixed end time on x-axis.
If we replace 0 by Blank(), it helps in restricting records of other shift type on x-axis in line chart but it also removes the fixed start and fixed end time.
For example: If for DS, last non blank values is at 5:00 PM then x-axis is shown till 5:00PM only. I want x-axis to have fix start and fix end time as per fixedaxis.
Thanks
Mann
- v-lili6-msft6 years agoCommunity Support
- Mann6 years agoResolver IIIHi Guys
I had to use Shift Type filter from Fixed axis only to make this work.
Somehow applying filter from ShiftType table doesnt work for this measure.