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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
wpf_
Post Prodigy
Post Prodigy

A measure is causing the table to show all the rows

I have a table and filtered by date.  Then there is this status measure that returns "Open" or "close" depending if one of the column is blank or not.  

 

Status =

Var mediaDistributeDate =   MINX(TableA, TableA[completedbydate])
return if(ISBLANK(mediaDistributeDate), "Open", "Close")
 
When i put this measure in, it shows all rows even if the date is filtered.  When I take it out, the date filter works.  Why is this, and how can i fix this?  
 
1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @wpf_ 

 

If you create the measure as a calculated column, you should be able to use it as a filter without the issues you're experiencing (if my understanding is correct). 

 

Otherwise, it may have something to do with the way the Date fields (i.e. Date in fact table versus Date in Date tables, etc) have been structured.

 

Let me know either way! 🙂

 

Theo

 

 

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
TheoC
Super User
Super User

Hi @wpf_ 

 

If you create the measure as a calculated column, you should be able to use it as a filter without the issues you're experiencing (if my understanding is correct). 

 

Otherwise, it may have something to do with the way the Date fields (i.e. Date in fact table versus Date in Date tables, etc) have been structured.

 

Let me know either way! 🙂

 

Theo

 

 

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

yes the calc column works but im trying to figure why the measure would not work.  I'll mark as resoloved but if you have any other ideas why please let me know. Thanks. 

@wpf_ hopefully thus link explains it a little more: https://www.sqlbi.com/articles/applying-a-measure-filter-in-power-bi/

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.