The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I have date field and when I insert in any visiualization, I would see date Hierachy (Day, Month, Year etc) and I can select only month for example. However; when I insert date filed in the filder (please see screenshot below). I would get that option anymore; instead I would get other options for example Advanced Filter, Top N etc.
Is there a way to get Date Hierachy in the filter? Thank you very much.
Solved! Go to Solution.
@lastnn30 , it always good to create a date table with column-like month, month year etc and use those
date =
Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month no" , month([date])
, "Year", year([date])
, "Month Year", format([date],"mmm-yyyy")
, "Month year sort", year([date])*100 + month([date])
, "Month",FORMAT([Date],"mmmm")
, "Month sort", month([DAte])
)
Join it with date of your table
Thank you very much.
@lastnn30 , it always good to create a date table with column-like month, month year etc and use those
date =
Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month no" , month([date])
, "Year", year([date])
, "Month Year", format([date],"mmm-yyyy")
, "Month year sort", year([date])*100 + month([date])
, "Month",FORMAT([Date],"mmmm")
, "Month sort", month([DAte])
)
Join it with date of your table
User | Count |
---|---|
75 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |