Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Analitika
Post Prodigy
Post Prodigy

Error in measure in Power BI

Hello,

 

I would like to ask how to fix this error in measure:

 

 

 

IF( HASONEVALUE('Date'[Metai]) ,CALCULATE ( [moketina_suma],
    DATEADD ('Date'[Date],-1,YEAR ) ) )​

 

That gives null value even I select one year.

 

I made relationship with Date table and table2. Table 2 date contains duplicates so that also not helped. So how I can resolve this issue?

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Analitika 

 

Our engineers have given a relevant solution in a similar thread. Refer to the following link:

Error in measure in Power BI - Microsoft Power BI Community


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Pbiuserr
Post Prodigy
Post Prodigy

Can you give some sample data?

Analitika_0-1656412520582.png

 

mokLY = 
IF( HASONEVALUE(PARDAVIMAI[year]) ,CALCULATE ( [moketina_suma],
    DATEADD (PARDAVIMAI[SUTP_DATA],-1,YEAR ) ) )

Table2 column. 

 

But still getting null.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.