Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
90 | |
84 | |
70 | |
49 |
User | Count |
---|---|
141 | |
120 | |
112 | |
60 | |
58 |