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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
eliasayyy
Memorable Member
Memorable Member

Line Chart not skipping dates and fixing error bar

hello everyone i have a calendar table , datatable, 2 disconnected date tables to choose from month vs month

my calendar table is a list from january 1 2023 to today()  my datatable has no data in some dates for example my datatable jumps from february 14 to march 14 , in 1 month i have no records

when i put the calendar table as x-axis and sum of values from datatable in y-axis , my line chart skips from feb 14 to march 14 and isnt continuous ina way

i am trying to make this

as you see i selected may and march since may has data from may 1 to may 31 , the line works and error bars work

annonymous1999_0-1688759756718.png

 



but in march it skips from feb 19 to march 14 

annonymous1999_1-1688759810858.png



and you can see that i dont have my second error bar because there is no march 1 

how to fix my issue here is full chart

annonymous1999_0-1688759963599.png

 

1 ACCEPTED SOLUTION

yea sure , since i have a field paramter of measures , i had to create a switch measure for my measures based on the order of the field paramter

Switch Measure = 
SWITCH(
SELECTEDVALUE('Parameter'[Order]),
0,[Measure 1],
....
)



after that i made another measure called switch measure no blanks

SWITCH Measuer No Blanks = 
IF(ISBLANK(Switch Measure]),0,[Switch Measure])



now i forced my line chart to take into consideration the 0s

now for my error bars and line above i just replaced the measure used in the formual to the [switch Measure No Blanks] 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @eliasayyy ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

hello thank you but i was able to solve iton my own

Anonymous
Not applicable

HI @eliasayyy,

Ok, I'm glad to hear you find the solutions.
BTW, did you mind sharing it here? They may help others who faced the similar scenarios.

Regards,

Xiaoxin Sheng

yea sure , since i have a field paramter of measures , i had to create a switch measure for my measures based on the order of the field paramter

Switch Measure = 
SWITCH(
SELECTEDVALUE('Parameter'[Order]),
0,[Measure 1],
....
)



after that i made another measure called switch measure no blanks

SWITCH Measuer No Blanks = 
IF(ISBLANK(Switch Measure]),0,[Switch Measure])



now i forced my line chart to take into consideration the 0s

now for my error bars and line above i just replaced the measure used in the formual to the [switch Measure No Blanks] 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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