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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
alya1
Helper V
Helper V

Bar and Area chart - how to change format (color/dotted line/highlight/etc) if it's in future date

Hello, 

 

I saw some solutions for similiar issue but my x-axis is a hierachy with Year and MonthID (for example. 2024-07, 2024-08, etc) with no date. Both of these are stored as text. I would like the formatting change to carry over when I drill up/down/expand hierachy please.
Area chart is summing as it goes to year and bar chart is averaging as it goes to year. Any formatting change is ok (different color/different line type/highlighting the background/etc) to show it isin (MonthID)/contains (Year) forecasted data in a future date.

Below is a sample of the data:

YearMonthMonthIDdoes it have historical data?To be graphed
2024052024-05yes10
2024062024-06yes12
2024072024-07yes13
2024082024-08no11
...............
2025022024-02no15


Thank you so much! 

1 REPLY 1
foodd
Super User
Super User

Hello @alya1 , and thank you for sharing a question with the Community.  This reply is informational. Please follow the decorum of the Community Forum when asking a question.

Please share your work-in-progress Power BI Desktop file (with sensitive information removed) and any source files in Excel format that fully address your issue or question in a usable format (not as a screenshot). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then provide the file's URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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