Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi ,
why below code shows Blank for some "Calendar_LastDayOfMonth" value.
How ever it works correct for values
Is it happening because my Calender table's value starts from 2017? but why it matters? it should calculate the value as expected.
Thanks
Solved! Go to Solution.
You are welcome. Ensure that the calendar goes one year prior from the first date. Replace previousmonth with previousyear.
Please how do i fix the below error message when try to load data?
'Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: [Expression.Error] The key didn't match any rows in the table.. '.
@Anonymous , Could you please post your question in a new thread? Tis way you will get correct response sooner. My post is around the previous month/ year calculation.
Thanks.
Priya
Hi,
Yes, it is because your Calendar table starts from 2017.
@Ashish_Mathur , Thanks for your response.
In that case why Blank is coming for Prior month for below example
Does this measure work
=calculate(min('Calendar'[Calendar_LastDayOfMonth]),previousmonth('Calendar'[Calendar_LastDayOfMonth]))
@Ashish_Mathur , yes this works. Thank you so much.
Could you please suggest solution for the previous year so that it does not show Blank?
Thanks,
Priya
You are welcome. Ensure that the calendar goes one year prior from the first date. Replace previousmonth with previousyear.
@priyanath1988 You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
@Greg_Deckler , Thank you for your response. I tried one of your codes but it throws an error. Could you please suggest whats wrong in it?
Thanks
Priya
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |