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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mmtd
Frequent Visitor

Secondary y-axis disappears when adding a value to x-axis on a "line and clustered column chart"

Hello all!

 

I am trying to create some visualizations with the "line and clustered column chart" visual.

The issue I am having is that the bar disappears as soon as I add the Year value to the x-axis. I have other very similar visuals with the same structure. The measures share the same DAX formula and are essentially the same, which is this:

 
% Intake =
var currentValue = [Intake Number]
var previousValue = CALCULATE([Intake Number], PARALLELPERIOD('Intake Date'[Date], -1, YEAR))

return
DIVIDE(currentValue - previousValue, previousValue)
 
This works for the three visuals with the blue bar. However, it does not work for our Revenue visual for some reason. The bar does not show when there is a value in the X-axis. The two visuals at the left bottom in the screenshot below are duplicates but before and after adding Year to the x-axis. Even the secondary line's title on the right side disappears too.

Capture.PNG

 

I have tried checking properties and changing the visual's size, but nothing has worked so far. I am very puzzled here. If anyone has any advice/suggestions, that would be very much appreciated!

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mmtd , Please use a date table in Slicer, measure and visual . Join Date of you table with Date of Date table

 

measure like

CALCULATE([Intake Number], Dateadd('Date'[Date], -1, YEAR)

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mmtd , Please use a date table in Slicer, measure and visual . Join Date of you table with Date of Date table

 

measure like

CALCULATE([Intake Number], Dateadd('Date'[Date], -1, YEAR)

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

It's been fixed! Thank you so much for your input. I really appreciate your advice!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.