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
I know this is probably a strange request...haven't seen too much on this. I need to calculate Jan - Dec metrics...but display them in reverse. Below is an example.... I want PY Q3-4 to align with Current year Q1-2...and PY Q1-2 to align with Current Year Q3-4. Anyone know of a blog post about doing something like this? The end result will display current year actuals...but I plan to use this calculation for future months.
Solved! Go to Solution.
I found a result that seems to work for me by just adding specific months to the max month. Thanks!
I found a result that seems to work for me by just adding specific months to the max month. Thanks!
Hi, @codyraptor ;
please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The dax I used to pull each month is not efficient. It's taking quite a bit of time to calculate each month. I've tried to use a fitler only on the date..and possibly pass the measure 1 time through the variable like below...but I get zero results. Any suggestions?
Var SelectedMonth = max('Dispatch Date'[Dispatch Month Num])
Var MonthCalc = SWITCH(TRUE(),
SelectedMonth = 1, DATESINPERIOD('Dispatch Date'[Dispatch Date], SelectedMonth, -1, Month),
SelectedMonth = 2, DATESINPERIOD('Dispatch Date'[Dispatch Date], SelectedMonth, -3, Month))
Return
Calculate( [Disp Ratio Spread Baseline], KEEPFILTERS('Dispatch Date'[Dispatch Date] = MonthCalc))
I can break this down by month and it works...just really long dax. Possible ways to make this cleaner?
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 |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |