Forum Discussion
Plot Line Chart from 2 independent date slicer
- 6 years ago
Hi Anonymous
Two new date tables and measures created as below:
min = CALCULATE ( MIN ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) max = CALCULATE ( MAX ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) average = CALCULATE ( AVERAGE ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) countall = COUNT ( 'Table 2'[id] )Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
Are the values calculated in four lines from the same table?
Can i use the data below to test?
Best Regards
Maggie
- Anonymous6 years agoNot applicable
Hi v-juanli-msft ,
Apologies for the delayed response. Yes you can use a similiar data.
The 2 date slicers are from the same table/source but are independant of each other i.e. I have created a copy of the table and sourcing from each of the 2 tables.
Unfortunately I cannot upload a sample file as I don't see an option to do so as well as I can't upload it to a dropbox or One drive Hence attaching a screenshot.
Goal is to club Chart 1 and Chart 2 into 1 single chart provided Value 1 changes wrt to Slicer1 and Value 2 changes wrt Slicer 2 only.
Hope it helps.
Thanks Again
Rohan
- Anonymous6 years agoNot applicable
Sample Screenshot
- v-juanli-msft6 years ago
Community Support
Hi Anonymous
Two new date tables and measures created as below:
min = CALCULATE ( MIN ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) max = CALCULATE ( MAX ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) average = CALCULATE ( AVERAGE ( 'Table 2'[Index] ), FILTER ( ALL ( 'Table 2' ), 'Table 2'[Date] >= MIN ( date1[Date] ) && 'Table 2'[Date] <= MAX ( date1[Date] ) ) ) countall = COUNT ( 'Table 2'[id] )Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.