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 September 15. Request your voucher.
Hello
I have data table with Date column in format "20200831" <- today.
I created a Date hierarchy table but I need to add a measure so it would show the date in the same way as in my Date column in data table so I could make a relationship between them.
Solved! Go to Solution.
you can create a column in date table and join it with your data table.
DtKey = FORMAT('Table'[Dt],"YYYYMMDD")
Proud to be a Super User!
Hi @Anonymous ,
You need to add calculated column:
Date Formatted = Format('Table (2)'[Date], "YYYYMMDD")
_______________
If I helped, please accept the solution and give kudos! 😀
@Anonymous , you can create this format in date using
Day key = format([Date],"YYYYMMDD")
Day key = year([Date])*10000 + month([Date])*100 +day([Date])
Or you can create date from this format
date = date(left([Day key],4) , mid([Day key],5,2), right([Day key],2))
20200831
Hi @Anonymous ,
You need to add calculated column:
Date Formatted = Format('Table (2)'[Date], "YYYYMMDD")
_______________
If I helped, please accept the solution and give kudos! 😀
you can create a column in date table and join it with your data table.
DtKey = FORMAT('Table'[Dt],"YYYYMMDD")
Proud to be a Super User!
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
203 | |
82 | |
65 | |
48 | |
38 |