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
ngiolet91
Frequent Visitor

DAX applied on Table filter dynamically

Hello,

I have a TABLE A with multiple data.

I create a TABLE B with several CALCULATE functions using data from TABLE A. No relation between TABLE A & TABLE B.
I would like that calculus made in Table B follow dinamically the filters applied in Table A in order to extract info dynamically from different subsets of Table A.

2 REPLIES 2
amitchandak
Super User
Super User

@ngiolet91 , You use the slicer of Table A in Table B to measure using treatas, or vice versa

 

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

https://docs.microsoft.com/en-us/dax/treatas-function

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks!
I am trying to figure it out but I do not get how "treatas" works.

This is one of the column calculated in Table B (BugCalendar) from Table A (BugCurve)

Open =
VAR Data = 'BugCalendar'[Date]
VAR Conta = CALCULATE(COUNTROWS(('BugCurve')),
    (NOT ISBLANK(BugCurve[Open]) &&  BugCurve[Open] <= Data) &&
        ((BugCurve[Processing]) >= Data || ISBLANK(BugCurve[Processing])) &&
        ((BugCurve[Rejected]) >= Data   || ISBLANK(BugCurve[Rejected])) &&
        ((BugCurve[Closed]) >= Data || ISBLANK(BugCurve[Closed]))
)+0
RETURN
IF(Data<= TODAY(),Conta,BLANK())

Filtering BugCurve using slice does not affect BugCalendar calculus. How to use TREATAS here?

Regards




 
 

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.