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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Help with my DAX formula

Hello!
So in the screenshot shown below I have two visuals. The left one is made using custom measures (which I will include) and the right one is just using Power BI. Some cells on the right visual appear empty but not on the left one. The left one seems to just copy the value of the non empty cell and put it in the empty one. Could someone please explain to me what's happening and pleease show me how to fix it? Thank you!

Visuals

Annotation 2020-07-03 165514.png

 

Model

Annotation 2020-07-03 170552.png

 

Measures

After Dialog Steps = 
var afterdate = MAX('Snapshot Date Info'[Date Time])
return
CALCULATE(
    SUMX(ST03N, [Number of Dialog Steps]),
    FILTER(
        ST03N,
        RELATED('Snapshot Date Info'[Date Time]) = afterdate
    )
)

Before Dialog Steps = 
var beforedate = MIN('Snapshot Date Info'[Date Time])
return
CALCULATE(
    SUMX(ST03N, [Number of Dialog Steps]),
    FILTER(
        ST03N,
        RELATED('Snapshot Date Info'[Date Time]) = beforedate
    )
)
1 ACCEPTED SOLUTION
kentyler
Solution Sage
Solution Sage

Is there a reason you have a bi-drectional relationship between the tables ? This seems to be the kind of problem bidirectional relationships can cause.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


View solution in original post

3 REPLIES 3
kentyler
Solution Sage
Solution Sage

Is there a reason you have a bi-drectional relationship between the tables ? This seems to be the kind of problem bidirectional relationships can cause.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Anonymous
Not applicable

@kentyler And you were right! I dont remember why I set it to bidirectional but yes that was a mistake. But why though, could you please explain to me a bit what the bidirectional selection did to cause that?

Sorry

I am not fluent enough to explain exactly why. I just know it as a best practice. The Italians says "Using bi-directional relationships can lead to strange outcomes on reports, so don't use them unless you absolutely have to"..... so I try to follow the best practice...even though I might not understand the "complications"  https://www.sqlbi.com/articles/bidirectional-relationships-and-ambiguity-in-dax/





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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