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

Null value in related column in table in Power BI

Hi,

 

Having issue like I created new column in table using dax related(date1[date]). But column contains null values. Also there is a relationship between tables Pardavimai and Date1. I don't get why column is null. Date1 table is created from Pardavimai date column. Pls help me solve this issue.

1 ACCEPTED SOLUTION

Hi  @Analitika,

It seems that your problem has been resolved as you mentioned in the following thread.

Error in calculating rate in Power BI

Ok. I solved it. xxxx

Best Regards

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

View solution in original post

4 REPLIES 4
Analitika
Post Prodigy
Post Prodigy

hi,

 

I would like to ask why measure gives me null value?

 

 

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

 

Table visual:

 

Analitika_0-1656575818533.pngAnalitika_1-1656575840040.png

relationship between two tables

Hi  @Analitika,

It seems that your problem has been resolved as you mentioned in the following thread.

Error in calculating rate in Power BI

Ok. I solved it. xxxx

Best Regards

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

Hi @Analitika ,

You can update the formula of measure [mok_ly] as below and check if you can get the correct result...

mok_ly =
IF (
    HASONEVALUE ( 'Date1'[Metai] ),
    CALCULATE (
        [moketina_suma],
        DATEADD ( 'Date1'[Date], -1, YEAR ),
        ALL ( yourfacttablename )
    )
)

yingyinr_0-1656900566927.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @Analitika ,

May I know if this thread has the same problem with the below one? If yes, you can check my reply in the below one. Thank you.

Has one value measure issue in Power BI

Otherwise, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

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.