Forum Discussion
Issue with Filtering a Line Chart with Fixed Axis
Can you provide the sample file to take a look at?
Hi Anonymous
I added some sample data and created a test PBIX. Its present here:
https://drive.google.com/file/d/1MG80plgaNLlRYlIjQ9mCat3iQ8zLO8X4/view
Let me know if you need anything else.
Mann
- Anonymous6 years agoNot applicable
The issue appears to be the date and time relationships. Because you're pulling data from Source and using the fixedaxis table as a dimension, and because those 2 tables don't have a time series link, it's pulling in all the data.
I created a separate date table and time table and connected those to the Source table and that seems to work as expected.Let me know if this is what you're looking for.
https://drive.google.com/file/d/18TbLs7cePoUJC1ObW0YX_Mw3a9ygOGJU/view?usp=sharing- Mann6 years agoResolver IIIHi 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.- v-lili6-msft6 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" }))RETURNIF ( ISBLANK ( _DisCount ), BLANK(), _DisCount )Result:
and here is sample pbix file, please try it.
Regards,
Lin