March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Have serached and can't seem to find a solution to this-
I have a date of an invoice and want to add some what if analysis to changes to average payment terms.
i thought i coudl use a parameter to do this, by creating a average payment term Parameter adjustment that starts at 15 and goes to 120
This was my thinking to get an Expected payment Date
but get this error
A single value for column 'Date' in table 'YTD Information' 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..
Alternativly i gues i could power query multiple new columns i.e +15 days +30days etc filter them on the visual.
Solved! Go to Solution.
HI @MartySapp,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
BTW, you can also try to use the following measure formula if helps:
Payment Term Extender Value =
VAR currDate =
MAX ( 'YTD Information'[Date] )
VAR DaystoAdd =
MAX ( 'Average Payment Term Extender'[Payment Term Extender] )
RETURN
CALCULATE (
[Total Forecast + Actual Base],
FILTER (
ALLSELECTED ( 'YTD Information' ),
[Date] >= currDate
&& [Date] <= currDate + DaystoAdd
)
)
Regards,
Xiaoxin Sheng
HI @MartySapp,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
BTW, you can also try to use the following measure formula if helps:
Payment Term Extender Value =
VAR currDate =
MAX ( 'YTD Information'[Date] )
VAR DaystoAdd =
MAX ( 'Average Payment Term Extender'[Payment Term Extender] )
RETURN
CALCULATE (
[Total Forecast + Actual Base],
FILTER (
ALLSELECTED ( 'YTD Information' ),
[Date] >= currDate
&& [Date] <= currDate + DaystoAdd
)
)
Regards,
Xiaoxin Sheng
Hi @MartySapp your issue is probably in this part
CALCULATE('YTD Information'[Date],DATEADD('YTD Information'[Date]
part 'YTD Information'[Date] should be something SUM (some table[some column]) and similar
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
24 | |
21 | |
20 | |
15 | |
10 |