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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

interactions work only in one direction

why interaction work only in one direction? Same code in other pbix file work like expected, but here not work, why?

 

Analitika_0-1614852669439.png

 

Analitika_1-1614852714328.png

 

https://filebin.net/97ae1ztowkykeyje

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Analitika ,

 

_Stock = 
IF (
    ISFILTERED ( 'Category'[short] ),
    CALCULATE (
        [_EUR, end],
        FILTER (
            VALUES ( 'pre_kod BRIDGE'[PRE_KOD] ),
            COUNTROWS (
                FILTER (
                    'Category',
                    [_categories]='Category'[short]
                )
            ) > 0
        )
    )
)

The context of this measure contains pre_kod BRIDGE'[PRE_KOD] columns, and there is no relationship between the pre_kod BRIDGE table and Category table. The context environment will affect measure, while the actual column will not be affected by selecting measure.

 

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

@V-lianl-msft other PBI files have same structure and relation, and work well

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.