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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors