Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Given the following schema
Table: Calendar
Table: GoogleAnalytics
where the 2 tables join on the Date fields,
How do I display
I've also been asked to divide the year into other arbitrary time periods (lunar calendar, for example).
Solved! Go to Solution.
Date math is going to be your best solution here. Using that you can do things like:
You can use measures within measures, so in your fortnight calculation, you can use the result of your weekly calculation. Once you have all the numbers you need, you can create the Text display measures that look something like
Display Week = "You are " & [WeekAmount] & " days into the week."
@Ormesome wrote:
Given the following schema
Table: Calendar
- Date
- Week Number
- Fortnight Number
- Month Number
Table: GoogleAnalytics
- Date
- Web Page
- Number Of Pageviews
where the 2 tables join on the Date fields,
How do I display
- "you are 2 days into the week"?
- "you are 9 days into the fortnight"?
- "you are 31 days into the month"?
I've also been asked to divide the year into other arbitrary time periods (lunar calendar, for example).
Your questions are not quite clear for me, could you post any sample data and the expected output?
Because the 2 tables are joined there is an implicit context filter on the calendar table. I found it tricky to use DAX to calculate the number of days that have passed this fortnight when there is no data in the GA table for the first 2 days.
I have reconsidered the problem and have successfully calculated this in Power Query.
Thank you
Date math is going to be your best solution here. Using that you can do things like:
You can use measures within measures, so in your fortnight calculation, you can use the result of your weekly calculation. Once you have all the numbers you need, you can create the Text display measures that look something like
Display Week = "You are " & [WeekAmount] & " days into the week."
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 37 | |
| 32 | |
| 21 |