Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all
how to calculate pervious 6 month when date column is text format?
here is the sample data link:
I have these 2 calculations:
But when I don't use the date hierarchy, the high of the Matrix is correct, but the numbers are wrong
please help me build a Matrix which has only 2 layer with yyyy-mm format and the correct number
sample data link is provided
Best regards,
Mike
Solved! Go to Solution.
Hi @MikeCheng
are you looking for an output similar to this ?
if that what you are looking for i have attached the pbix file for your reference
Hi @MikeCheng ,
Just checking in to see if you query is resolved and if any responses were helpful.
Otherwise, feel free to reach out for further assistance.
Thank you.
Hi @MikeCheng ,
Thanks for reaching out to Microsoft Fabric Community.
Also, thanks @kushanNa for your inputs and suggestions.
@MikeCheng , just wanted to check if the solution provided has addressed your needs and if you have considered the benefits of creating a Date table as mentioned by @kushanNa .
As mentioned, using a separate Date table is not mandatory, but it helps simplify calculations like YTD, QTD, and moving averages. This ensures your measures return correct results even when the column in your Matrix is in yyyy-mm format, keeping the Matrix at two layers.
Please reach out for further assistance.
Thank you.
Hi @MikeCheng
are you looking for an output similar to this ?
if that what you are looking for i have attached the pbix file for your reference
yes, this is what I am Looking for, can you explain why to create another date table?
Hi kushanNa
yes, this is what I looking for, can you explain why does it need to create another date table?
Hi @MikeCheng
I believe it’s not always a must to create a Date table, but I usually create one when troubleshooting these types of scenarios since it makes things less complicated. Also, if you plan to do more time intelligence (YTD, QTD, moving averages, etc.), having a Date table will save you a lot of headaches.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |