Forum Discussion
Display a range of dates
- 9 years ago
Create a Measure using either one of the Measures below they should give you some ideas how to tailor to your setup!
The second Measure allows you to use a custom Year-Mo column which is not formatted as Date.
You can modify these many other ways :smileyhappy:
In fact you can also use in conjunction with the FORMAT function!
Look at the Picture below to see the results...
Which way you decide to go will depend on how you aggregate your data.
Do you need to see the specific Dates or is Months only okay
Hope this helps! :smileyhappy:
Report FIRST/LASTDATE = FIRSTDATE('Calendar'[Date]) &" - "& LASTDATE('Calendar'[Date])
Report FIRSTNON/LASTNON 2 = IF ( FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ) = LASTNONBLANK ( 'Calendar'[Year-Mo], 1 ), FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ), FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ) & " ~ " & LASTNONBLANK ( 'Calendar'[Year-Mo], 1 ) )
Report Period FORMAT = FORMAT(FIRSTDATE('Calendar'[Date]), "MMM yyyy") & " - " & FORMAT(LASTDATE('Calendar'[Date]), "MMM yyyy")
Create a Measure using either one of the Measures below they should give you some ideas how to tailor to your setup!
The second Measure allows you to use a custom Year-Mo column which is not formatted as Date.
You can modify these many other ways :smileyhappy:
In fact you can also use in conjunction with the FORMAT function!
Look at the Picture below to see the results...
Which way you decide to go will depend on how you aggregate your data.
Do you need to see the specific Dates or is Months only okay
Hope this helps! :smileyhappy:
Report FIRST/LASTDATE = FIRSTDATE('Calendar'[Date]) &" - "& LASTDATE('Calendar'[Date])
Report FIRSTNON/LASTNON 2 =
IF (
FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ) = LASTNONBLANK ( 'Calendar'[Year-Mo], 1 ),
FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ),
FIRSTNONBLANK ( 'Calendar'[Year-Mo], 1 ) & " ~ " & LASTNONBLANK ( 'Calendar'[Year-Mo], 1 )
)
Report Period FORMAT = FORMAT(FIRSTDATE('Calendar'[Date]), "MMM yyyy") & " - " & FORMAT(LASTDATE('Calendar'[Date]), "MMM yyyy")
- Chapin4u9 years ago
Microsoft Employee
Many thanks for a great explanation and the examples.
- Boni5 years agoFrequent Visitor
Hi Guys ,
is it possible to show the actual slicer settings from an text slicer in an seperat Cart / Box .
Example: I chose the campaign "Campaings nr145" on my extra filter page.
Now i am searching for an Box where i can see the actuell settings of the campaign slicer with out showing the slicer bos again.
Thanks for help