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,
I have table with column "notification date". This column is not unique.
I need to create a measurement, where the difference between now() and notification date should be greater than 45 days.
I tried using DateDiff : NotificationDateDiff = (DATEDIFF(tablename[Notification Date],NOW(),DAY)) > 45
It gives me following error:
A single value for column 'Notification Date' in table 'tablename' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
Can anyone help me with this?
Appreciate the help.
Thanks
Solved! Go to Solution.
You could try a couple things. One, put a MAX or other aggregator around your Notification Date in your formula. Or, you could put this formula into a calculated column.
You could try a couple things. One, put a MAX or other aggregator around your Notification Date in your formula. Or, you could put this formula into a calculated column.
I found the solution.
Thank you.
Thanks for the response.
I don't understand the use of max here. I want to check each record, if the difference is > 45.
consider that date if > 45 else ignore.
Can you elaborate?
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 |
---|---|
92 | |
75 | |
65 | |
49 | |
36 |
User | Count |
---|---|
114 | |
89 | |
80 | |
60 | |
40 |