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
fabiansjosten
Regular Visitor

Don't want to show dates with no data

Hi

I have a area chart that have dates in the axis and dirrent values. I dont want to show the dates with no values.

The dates in the axis is from a sepperate table and to that table do I have two other tables connected, so I use the date table for relationship between the others. 

Heres some pictures to clarify:

 

 

So here i dont want do show day 8 and 9.

 

BR

Fabian

1 ACCEPTED SOLUTION

There's no data with that date.

 

but i found the solution for my porblem.

In the area chart format. For the X-axis i change the type from continuous -> categorial.

Snag_bbb468f.png

 

So day 8 and 9 was removed. 

 

 

Snag_bbdafb0.png

View solution in original post

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi ,

Great to hear your problem got resolved!

Could you accept your reply above as solution to close this thread?

Best Regards,
Community Support Team _ Eason

tex628
Community Champion
Community Champion

Hi,

I'm assuming by the pictures that if 'Gamla' is 0 you dont want to display the date. 

If this is the case you can create a calculated column in your date table along th lines of this: 

 

 

Column = 
IF( CALCULATE(SUM('Table'[Gamla])) > 0 ; 1 ; 0 ) 

 


This column you should then be able to use as a visual level filter that removes the dates that do not have a related value on 'Gamla' .

Br,
Johannes


Connect on LinkedIn

The numbers is produktion numbers.

So we log everyday what we done. When we log we log it with a date.

Here is the weekend and we don't log any numbers. But the dates still are displayed in the area chart.

 

BR

Fabian

 

The reason that the weekend days are showing is because there are values for RFS/Plan related to those days. Either you can remove the dates depending on the value of 'Gamla' as i proposed in the previous message or you can use the WEEKDAY() dax syntax to identify the weekends and use that to filter instead.

Br,
J


Connect on LinkedIn

There's no data with that date.

 

but i found the solution for my porblem.

In the area chart format. For the X-axis i change the type from continuous -> categorial.

Snag_bbb468f.png

 

So day 8 and 9 was removed. 

 

 

Snag_bbdafb0.png

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.