cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors