Skip to main content
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

New Member

Filter not working when determining the status of records



I need some help with DAX formula and filtering.


I have a simple model: 1 lookup table and 1 fact table of renovation data.


Lookup table : ‘Buildings’ - building ID


Fact table: ‘Renovations’ – building ID, renovation ID, start date, end date


Each renovation has a renovation ID.

A renovation can have one or more sets of activities i.e. – multiple start and end dates.

A building can have one or more renovations.


I need to determine the current status of a renovation based on the report date i.e. - current, historical or planned.


The logic is:

  1. calculate the # rows in Renovation table
  2. determine the status of each record in Renovations table
  3. calculate the total # of current, historical or planned records in Renovations table
  4. calculate the # of current, historical or planned records for a specific Renovation ID
  5. determine whether a renovation is current, historical or planned for a given Renovation ID


Some of the formula seem to work OK but as soon as I filter my table with Building[building ID] the results are wrong. I have attached an example file with various tables.


Can someone explain what I am doing wrong?




PS I have not attached the file yet as I'm trying to find the 'reply' option

Microsoft Employee
Microsoft Employee

Hi @TheFred


It seems an issue with Excel. Please share your Power BI data sample file and expected output. You may refer to below post.You can upload it to OneDrive or Dropbox and post the link here.



Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

Here is the link to the file: Renovation example

Helpful resources

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.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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