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.
hi,
i created a measure to list dates using the new quick measure tool & the resultant dax is as flws:
Hi @Anonymous ,
You may create [YearMonth] column firstly, then select on the 'Calendar'[YYYY+MMM], go to Column tools ->Sort by column, choose [YearMonth].
YearMonth = VALUE(FORMAT('Calendar'[Date],"yyyymm"))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tks @v-xicai,
the solution seems to work for YYYY-MM column (createdd by YYYY+MM = FORMAT('Calendar'[Date], "yyyy-mm").
however, if i select the YYYY+MMM column (created by YYYY+MMM = 'Calendar'[YYYY]&"-"&'Calendar'[MMM]), i stil down get the column sorted chronologically.
i believe i'm still missing something.
appreciate any help.
tks, -nik
Hi @Anonymous ,
The data type of the two formulas below as you said is text . So I recommend you try the my formula " YearMonth = VALUE(FORMAT('Calendar'[Date],"yyyymm")) ", which is using VALUE function to convert text type to number type . Then follow the steps above.
This is Text type:
YYYY+MM = FORMAT('Calendar'[Date], "yyyy-mm" )
YYYY+MMM = 'Calendar'[YYYY]&"-"&'Calendar'[MMM])
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous did you use sort by as recommended by @v-xicai. Here is a post I wrote on calendar table and that use sort by method. I hope this helps.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
hi @amitchandak,
as the file contains sensitive data from my client, i'm unable to share the pbix. additionally, its datasource is a dataset in pbi service.
many tks still.
krgds, -nik
User | Count |
---|---|
71 | |
65 | |
62 | |
50 | |
28 |
User | Count |
---|---|
117 | |
75 | |
61 | |
54 | |
42 |