Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
How can i display PY YTD (Previous Year YTD) as ONE bar at the beginning with axis label as "PY YTD" and YTD_Yield which is current year YTD after Dec as one bar.
I managed to get one consolidated value of PY YTD as shown below.
@amitchandak @Samarth_18 @TheoC
Solved! Go to Solution.
Hi @PowerBuddy1,
I'd like to suggest you write a measure formula with an if statement to check the current category and redirect the calculations to different expressions and replace the raw table field to use on the chart.
Using the SELECTEDVALUE function in DAX - SQLBI
Measure =
VAR currMonth =
SELECTEDVALUE ( Table[Month] )
RETURN
IF (
currMonth = "Jan",
'expression1',
IF ( currMonth = "Feb", 'expression2', SUM ( Table[values] ) )
)
Regards,
Xiaoxin Sheng
Hi @PowerBuddy1,
I'd like to suggest you write a measure formula with an if statement to check the current category and redirect the calculations to different expressions and replace the raw table field to use on the chart.
Using the SELECTEDVALUE function in DAX - SQLBI
Measure =
VAR currMonth =
SELECTEDVALUE ( Table[Month] )
RETURN
IF (
currMonth = "Jan",
'expression1',
IF ( currMonth = "Feb", 'expression2', SUM ( Table[values] ) )
)
Regards,
Xiaoxin Sheng
@PowerBuddy1 , I doubt LYTD formula, can you share that
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
User | Count |
---|---|
112 | |
71 | |
57 | |
44 | |
39 |
User | Count |
---|---|
176 | |
125 | |
61 | |
60 | |
58 |