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 can not for the life of me figure how to write a measure where I can show rolling-12 revenue from month to month and provide the user the ability to select the period to view it in (2, 3, 5, 10 year).
Help!
Solved! Go to Solution.
Hi, @ShrimpCreole
Try to enter a new table :
YTD =
CALCULATE ( SUM ( Sales[Sales Amount] ), DATEADD ( 'Date'[Date], -1, YEAR ) )13M =
CALCULATE ( SUM ( Sales[Sales Amount] ), DATEADD ( 'Date'[Date], -13, MONTH ) )
....
Then add a new measure like:
New measure=
SWITCH (
SELECTEDVALUE ( 'Slicer Table'[Period] ),
"YTD", [YTD],
"13M", [13M],
"2YR", [2YR],
"3YR", [3YR],
"5YR", [5YR],
)
Best Regards,
Community Support Team _ Eason
Hi @ShrimpCreole,
I am trying to figure out precisely, what you want. I get that you need cumulative revenue across months. Care to elaborate how you want the period selection to work?
Sorry I did a poor job of explaining my issue.
I want the user to have the ability to select the viewing period using the attached visual. I can do this when I display monthly revenue totals, but do not know how to do so showing roll-12 totals. The chart would provide monthly figures over the period.
Hi, @ShrimpCreole
Try to enter a new table :
YTD =
CALCULATE ( SUM ( Sales[Sales Amount] ), DATEADD ( 'Date'[Date], -1, YEAR ) )13M =
CALCULATE ( SUM ( Sales[Sales Amount] ), DATEADD ( 'Date'[Date], -13, MONTH ) )
....
Then add a new measure like:
New measure=
SWITCH (
SELECTEDVALUE ( 'Slicer Table'[Period] ),
"YTD", [YTD],
"13M", [13M],
"2YR", [2YR],
"3YR", [3YR],
"5YR", [5YR],
)
Best Regards,
Community Support Team _ Eason
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 |
|---|---|
| 53 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |