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

Lower level data not filtering - getting comstant numbers

Hi Experts

 

This is driving me mad, has to a relationship issue or something missing from measure formula.

Model image

 

Agent Names bridge has unique values and links to stg fact created via created agent name and stg fact close by closed agent name

 

The Payzone Ref bridge has all the pay zone ref ids associated with the agent

 

The 33 need to be broken down by Payzone ref not the same value for each payzone id has to be 0 or 1

 measure b/f

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(COUNT('STG Fact_To_Do_Created'[Closed]),
FILTER(ALLEXCEPT('STG Fact_To_Do_Created','Agent_Names'[Agent_Name], Agent_Names[Department]),
'STG Fact_To_Do_Created'[Created_Date] < MinDate &&
'STG Fact_To_Do_Created'[Date_Closed] >= MaxDate && 'STG Fact_To_Do_Created'[Date_Closed] <= LastWeek && 'STG Fact_To_Do_Created'[Created_Date]<>BLANK()),CROSSFILTER('STG Fact_To_Do_Created'[Created_By_FullName],'Agent_Names'[Agent_Name],Both)) + [B/f (Still Open)]

 

 

 

  • 16012917810766176355007352602749.jpg

 

Table of constant values..

 

16012920109787409783446775946494.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

1 REPLY 1
Anonymous
Not applicable

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.