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
Hello everyone!
I have this PBI file File
I need to be able to present the selected year in the visualization with respect to the previous year to show the values of the measures. How can I do this?
Thank you very much.
Solved! Go to Solution.
This is my solution:
Mesures:
There is no need for a 2nd date table, this can easily be done using only 1 with the right measures:
MaxYearValue =
VAR vMaxYear =
MAX ( DateTable[Year] )
RETURN
CALCULATE (
SUM ( Data[Value] ),
DateTable[Year] = vMaxYear
)PreviousYearValue =
VAR vMaxYear =
MAX ( DateTable[Year] )
RETURN
CALCULATE (
SUM ( Data[Value] ),
DateTable[Year] = vMaxYear - 1
)Thanks @Arklur and @amitchandak you for your help. It's not exactly what I needed but it's given me a couple of ideas.
Hi , @Raul
Can you explain bit more?
For now, there is no other content of description in the thread. If you still need help, please share more details to us.
Best Regards,
Community Support Team _ Eason
This is my solution:
Mesures:
@Raul ,refer if this can help
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
You need two date table in such case
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.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |