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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to hide first day's data in a column chart without losing the date placeholder.

I have a column chart showing day-to-day changes for the last 7 days.  The first column should be just a date on the x-axis without any data in the column, since we don't want to consider data from 8 days ago.  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You need to create two measures.

measure1 = IF([date] >= today()-7,1,0)

Add this measure to visual filter to filter last 8 days' date.

measure2 = IF([date] >= today()-6,[calculated value],0)

Add this measure to value field to show last 7 days' data and show the data of day 8 as 0.

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

You need to create two measures.

measure1 = IF([date] >= today()-7,1,0)

Add this measure to visual filter to filter last 8 days' date.

measure2 = IF([date] >= today()-6,[calculated value],0)

Add this measure to value field to show last 7 days' data and show the data of day 8 as 0.

 

Best Regards,

Jay

Anonymous
Not applicable

Thank you, I apparently don't have the ability to post a file attachment here.  We have put the file in Teams.  I hope this works.  https://schoolcraftcollege-my.sharepoint.com/:u:/g/personal/bschreib_schoolcraft_edu/EdKbOaBu1mpMoxj... 

vanessafvg
Super User
Super User

you might need to provide more information.  what is the measure are you showing for the day to day changes, you will probably need to do an measure =  if(isnull(measure),0, measure) if you are wanting a 0 value for that day.  





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

This is the measure: 

Seats Gain Loss = [Total Enrolled] - [Yesterday Enrolled].
Total Enrolled comes from a column and Yesterday Enrolled is another measure that I wrote like this: 
Yesterday Enrolled = CALCULATE(SUM('DataTable'[Enrolled]), PREVIOUSDAY('DataTable'[Add Date])).
Then I put a filter on the chart so that it would return only days > 7 days ago.

Ok then I am not quiet clear what you need.   Please can you share the visual you are using right now and what it is you want differently?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

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.

Top Solution Authors