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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.