Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Data - two columns dates and placement #'s
What I want is
When I select a date from a slicer i want to see totals per day within the month where I selected a date..
E.G. if I select: 1/3/23, I want to see:
If I select 2/5/23 I want to see:
Solved! Go to Solution.
Hi @CharlotteCity12 ,
Assume you have 'DateTable' which has relationship with your 'PlacementTable'.
And you have 'SecondDateTable' which does not have any relationship to your 'PlacementTable' and 'DateTable'.
1-Put Date column from 'SecondDateTable' as your slicer to select the date you want.
2-Put Date column from 'DateTable' on your X-Axis.
3-Create the measure below and put it as your Y-Axis:
NoOfPlacement=COUNTROWS(PlacementTable)
4-Create the measure below and put it as a "filter on this visual" from "filterpane" and set it to "greater than or equal to 1" :
FILTERONVISUAL =
COUNTROWS (
FILTER (
DateTable,
MONTH ( DATETABLE[Date] ) = MONTH ( SELECTEDVALUE ( SECONDDATETABLE[Date] ) )
&& YEAR ( DATETABLE[Date] ) = YEAR ( SELECTEDVALUE ( SECONDDATETABLE[Date] ) )
)
)
Then with changing your slicer from step1, the result would be same as what your are looking for. (Do not forget that you can turn on the show items with no data or turn it off on your visual to show or not show the days of the month without any placement)
If this answer helped you, mark it as an kudoed accepted solution.
Regards,
Loran
Loran, You are the best! THANK you so much for your quick response... It worked perfectly!!! Dannio
Hi @CharlotteCity12 ,
Assume you have 'DateTable' which has relationship with your 'PlacementTable'.
And you have 'SecondDateTable' which does not have any relationship to your 'PlacementTable' and 'DateTable'.
1-Put Date column from 'SecondDateTable' as your slicer to select the date you want.
2-Put Date column from 'DateTable' on your X-Axis.
3-Create the measure below and put it as your Y-Axis:
NoOfPlacement=COUNTROWS(PlacementTable)
4-Create the measure below and put it as a "filter on this visual" from "filterpane" and set it to "greater than or equal to 1" :
FILTERONVISUAL =
COUNTROWS (
FILTER (
DateTable,
MONTH ( DATETABLE[Date] ) = MONTH ( SELECTEDVALUE ( SECONDDATETABLE[Date] ) )
&& YEAR ( DATETABLE[Date] ) = YEAR ( SELECTEDVALUE ( SECONDDATETABLE[Date] ) )
)
)
Then with changing your slicer from step1, the result would be same as what your are looking for. (Do not forget that you can turn on the show items with no data or turn it off on your visual to show or not show the days of the month without any placement)
If this answer helped you, mark it as an kudoed accepted solution.
Regards,
Loran
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
84 | |
77 |