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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
pipanebo
New Member

How to filter data by date and filter the rest of the visual

Hello,

 

My database is like this:

 

pipanebo_2-1680618222938.png

 

 

I'm trying to filter some data by date, but when I choose different months the visual of some charts doesn't show up and I get this error:

 

pipanebo_0-1680617562900.png

 

I'm trying to show average time of an activity in a column chart, as shown below:

pipanebo_1-1680617676580.png

This average time is calculated like this:

 

Tempo médio de furação = CALCULATE(AVERAGEA(PLANILHA[TEMPO FURO]),PLANILHA[TEMPO FURO]<>BLANK())

 

Média Furo Valor =
VAR HOR = (HOUR([Tempo médio de furação]) + ([Inteiro tempo]*24))
VAR MINU = MINUTE([Tempo médio de furação])
VAR SEG = SECOND([Tempo médio de furação])
VAR H = FORMAT(HOR,"00")
VAR M = FORMAT(MINU,"00")
VAR S = FORMAT(SEG,"00")
Return
VALUE (H & M & S)

 

 

When I try to filter this data by date (which I have a column associating all the data) I get the error. 

1 REPLY 1
Wilson_
Super User
Super User

Hello pipanebo,

 

Based on the error message, it looks like you have values in the TEMPO FURO column that aren't actually blanks, but instead are empty strings. For example, can you go into Power Query on your table and check that the value of the first row is actuall null?

 

This other thread might be of use to you.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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