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.
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 FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
93 | |
75 | |
65 | |
51 | |
36 |
User | Count |
---|---|
113 | |
90 | |
80 | |
62 | |
40 |