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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.

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.

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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