Reply
ksheth
New Member
Partially syndicated - Outbound

Need time series showing only Year on axis, but counts by month and year when hovering over visual?

Hello,

 

I am trying to create a time series visual with counts over time, where the x-axis only shows the Year but when you hover over the visual the pop-up shows the Month and Year. I have 2 different data sets I am using, and while I was able to accomplish this for one of the daa sets, replicating the same process for the second data set does not seem to be working. I understand I likely have to use the Date Hierachy within the visual, and I have followed the same process for the time series visual for both data sets yet I am seeing different results.

 

Both of the data sets have Date columns that include the day of week, day, month, and year. See snippets of the Date column and format settings for each data set below, for reference:

 

Data set #1:

ksheth_3-1742245389418.png

 

Data set #2:

ksheth_4-1742245692779.png

 

I also created a calculated column within each data set called "MonthYear" that gives me the Month and Year, using this formula:

 

 

MonthYear = format('DATA SET'[DATE],"mm-yyyy")

 

 

 

The calculated MonthYear columns in both data sets also have the same format settings as their original Date columns (as seen in snippets above).

This is what I want:

ksheth_0-1742244884640.png

And this is how I made this visual:

ksheth_5-1742246007544.png

As you can see, this visual only shows the Year on the x-axis, but shows but Year and Month when I hover over it.

 

This is the visual that is giving me a problem:

ksheth_8-1742246171104.png

And this is how I made this visual:

ksheth_7-1742246127511.png

 

As you can see, the second visual does show me both Month and Year when I hover over the visual, but the x-axis also is broken down by Year and Month instead of Year alone. If I remove "Month" from the MonthYear date hierarchy, I face the following issue where the visual only shows the Year when I hover over it (see below snippet).

ksheth_9-1742246426983.png

 

How can I fix this so I can consistently display my visual as intended? Thank you!!

1 ACCEPTED SOLUTION
Tutu_in_YYC
Super User
Super User

Syndicated - Outbound

Try changing the x-axis setting to Continuous

Tutu_in_YYC_0-1742247045754.png

 

View solution in original post

3 REPLIES 3
Tutu_in_YYC
Super User
Super User

Syndicated - Outbound

Try changing the x-axis setting to Continuous

Tutu_in_YYC_0-1742247045754.png

 

Syndicated - Outbound

Yes, this solved my issue! I can't believe it was so simple. Thank you very much!

Syndicated - Outbound

welcome!

avatar 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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)