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 have table SalesInOut (DateID, Amount, SalesType, FreeItem).
I create a Clustered column chart with axis: DateID, Value: measure
ValSI = CALCULATE(SUM(SalesInOut[Amount])/1000000,SalesInOut[SalesType] = "I", SalesInOut[FreeItem] = FALSE())
I create a slicer to filter my chart.
I want to my chart display all DateID from begin date to date that selected.
But when I selected DateID in slicer, my chart only display 1 column which is selected.
Anybody help me?
This is link my report: https://drive.google.com/file/d/0B1L_chy-uFDKVkkzUE5GU0pvMVE/view?usp=sharing
Solved! Go to Solution.
Hi @pmhoang94,
Based on my understanding, you want the chart to display data from first date to the selected date from slicer, right?
One simple way to achieve that is changing the slicer from "Dropdown" to "Before".
Another option is separate the DateID from SalesInOut table to a single table. And modify the measure as below:
DateID = SELECTCOLUMNS(SalesInOut,"DateID",SalesInOut[DateID]) Top Sales to date = CALCULATE ( [ValSI], DATESBETWEEN ( 'SalesInOut'[DateID], FIRSTDATE ( 'SalesInOut'[DateID] ), MAX ( DateID[DateID] ) ) )
Add DateID[DateID] into slicer.
Best regards,
Yuliana Gu
Hi @pmhoang94,
Based on my understanding, you want the chart to display data from first date to the selected date from slicer, right?
One simple way to achieve that is changing the slicer from "Dropdown" to "Before".
Another option is separate the DateID from SalesInOut table to a single table. And modify the measure as below:
DateID = SELECTCOLUMNS(SalesInOut,"DateID",SalesInOut[DateID]) Top Sales to date = CALCULATE ( [ValSI], DATESBETWEEN ( 'SalesInOut'[DateID], FIRSTDATE ( 'SalesInOut'[DateID] ), MAX ( DateID[DateID] ) ) )
Add DateID[DateID] into slicer.
Best regards,
Yuliana Gu
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 |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |