Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi All
Solved! Go to Solution.
Hi Shex
I already solve the issue. the master calendar end year 2020 , should not be make any changes. it was due to i need to set 2021 sales target amount , and instead of force my sales target 2021 to display 2021 value , i don't know i go and change the master calendar end year from 2020 to 2021 , the side effect is it will affect LYTD sales expression display Null. So far i have encounter few major issue suddenly not working for example cannot refresh data using share point due to need to add serurity access , also setting section access control. and many other items also. never ending .
Paul Yeo
Paul
@Paulyeo11 , if there is no date filter on page and you are not using any date related stuff on visual then you will not get data. As 31-dec-2022 is your date when there is no date in the context for totalytd
You can also try this option, but date should be in context
LYTD QTY forced=
var _max = date(year(today())-1,month(today()),day(today()))
return
if(max('Date'[Date])<=_max, CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year)),'Date'[Date]<=_max), blank())
//OR
//CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year)),'Date'[Date]<=_max)
Hi Amit
HI @Paulyeo11,
Can you please share some dummy data to test? It is hard to troubleshoot and test with your formulas without any detailed data.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi Shex
I already solve the issue. the master calendar end year 2020 , should not be make any changes. it was due to i need to set 2021 sales target amount , and instead of force my sales target 2021 to display 2021 value , i don't know i go and change the master calendar end year from 2020 to 2021 , the side effect is it will affect LYTD sales expression display Null. So far i have encounter few major issue suddenly not working for example cannot refresh data using share point due to need to add serurity access , also setting section access control. and many other items also. never ending .
Paul Yeo
Paul
I'm glad to hear you solve this problem. Looks like you've still faced some extra problems. For this scenario, I would like to suggest that you share more detailed information here. Then we can take a look at these problems and try to fix them.
Best regards
Xiaoxin Sheng
@Paulyeo11 , Please add a date or year filter to the page and check that. If you do not add a filter/slicer which date will be used for YTD and LYTD is very important.
Date from the row context(year, month or date will give that) , if not the last date of the calendar
Hi @Paulyeo11
How/where are you using the mesure exactly?
What is it that does not work exactly?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
71 | |
68 | |
50 | |
30 |
User | Count |
---|---|
119 | |
101 | |
73 | |
65 | |
40 |