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
Hello,
I would like to ask why I am getting null in rate in percent if I use this measure:
mok_ly =
IF( HASONEVALUE('Date'[Metai]) ,CALCULATE ( [moketina_suma],
DATEADD ('Date'[Date],-1,YEAR ) ) )
moketina suma measure is from other table. Basically is a relationship between Date table and another table. But I am getting null somehow, why and how to fix it?
Solved! Go to Solution.
Hi @Analitika ,
Please try this formula:
mok_ly =
IF (
HASONEVALUE ( 'Date'[Metai] ),
CALCULATE (
[moketina_suma],
FILTER (
'table',
'table'[date] = EDATE ( SELECTEDVALUE ( 'date'[date] ), -12 )
)
)
)
Best Regards,
Jay
Hey @Analitika ,
can you provide some data? Otherwise it's hard to find out why the result is empty.
What is the result of the measure without the "DATEADD"? Did you use a date table in your report or not?
Best regards
Denis
Yes I am using Date table. But getting null rate somehow.
Hi @Analitika ,
Please try this formula:
mok_ly =
IF (
HASONEVALUE ( 'Date'[Metai] ),
CALCULATE (
[moketina_suma],
FILTER (
'table',
'table'[date] = EDATE ( SELECTEDVALUE ( 'date'[date] ), -12 )
)
)
)
Best Regards,
Jay
What about this?
Without using Date table, date column is used in same table called Pardavimai.
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 |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |