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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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
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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.