The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
71 | |
64 | |
58 |