I have the following measure (CLOSINGBALANCEMONTH(sum('Patient Numbers'[ClosingBalance]),'Patient Numbers'[MonthCode]))
but its showing 0, any idea why it wouldn't be returning values? i definitely do have datea, for example if i just did a sum on the column data is returned, wondering what i need to check?
Solved! Go to Solution.
The syntax is using CLOSINGBALANCEMONTH(<expression>,<dates>[,<filter>])
where the dates argument can be any of the following:
A reference to a date/time column.
A table expression that returns a single column of date/time values.
A Boolean expression that defines a single-column table of date/time values.
Make sure 'Patient Numbers'[MonthCode] follows any one of the above date argument.
thanks for responding, monthcode is a date column, so that woudn't be the issue i think? month date looks like this
and in the data model it is seen as a date datatype
Could you post your table structure with some sample data which can reproduce this issue, so that we can help further investigate on it? It's better to share a sample pbix file. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.
Great to hear the problem got resolved! Could you accept your reply above as solution to close this thread?
then may be you need make some changes in the expression which you have used.
Below link might help you:
Check out new user group experience and if you are a leader please create your group!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Click here to read more about the July 2021 Updates
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps