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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure not filtering with slicer all other measure filter

Hi Expert

 

All my mesure filter expect for one and i cannot see the wood for the trees. I have two tables in my model a FACT tables - table A and a Dim_Date Table - Table B 

Table B (DATE) links to Table A  (Created Date)

 

measure

Previous Period B/f =
VAR MinDate = MIN('STG Dim_Date'[FirstDayOfMonth])
VAR MaxDate = MAX('STG Dim_Date'[FirstDayOfMonth])
VAR LastWeek = MAX('STG Dim_Date'[LastDayOfMonth])

RETURN

CALCULATE(SUM('Table A'[Closed]),
FILTER(ALLEXCEPT('Table A','Table A'[Full_Name]),
'Table A'[Created_Date] < MinDate &&
'Table A'[Date_Closed] >= MaxDate && 'Table A'[Date_Closed] <= LastWeek && 'Table A'[Created_Date]<>BLANK()))
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All

I found the solution applied another filter based on the team.

CALCULATE(SUM('Tabla A'[Cerrado]),
FILTER(ALLEXCEPT('Tabla A','Tabla A'[Full_Name], 'Table A 'Teams]),
'Tabla A'[Created_Date] < MinDate &&
'Tabla A'[Date_Closed] >-MaxDate && 'Tabla A'[Date_Closed] <' LastWeek && 'Tabla A'[Created_Date]<>BLANK())
This gave the correct answer. Thanks Experts

View solution in original post

3 REPLIES 3
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You will have add more detail here like screesnhots on what is not filtering.

You haven't mentioned - what slicer you are using and what is not filtering.

Just posting the measure firmula is not helping much.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Sorry i cannot upload from my laptop??? otherwise i would have provided an image.

Anonymous
Not applicable

Hi All

I found the solution applied another filter based on the team.

CALCULATE(SUM('Tabla A'[Cerrado]),
FILTER(ALLEXCEPT('Tabla A','Tabla A'[Full_Name], 'Table A 'Teams]),
'Tabla A'[Created_Date] < MinDate &&
'Tabla A'[Date_Closed] >-MaxDate && 'Tabla A'[Date_Closed] <' LastWeek && 'Tabla A'[Created_Date]<>BLANK())
This gave the correct answer. Thanks Experts

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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