Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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.. '.
@Ozelle , 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
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
86 | |
76 | |
66 |
User | Count |
---|---|
149 | |
117 | |
111 | |
106 | |
95 |