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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Anonymous
Not applicable

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

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

Anonymous
Not applicable

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

Anonymous
Not applicable

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

Anonymous
Not applicable

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.