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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.