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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cumulative graph by year and quarters ( with missing quarters)

Hi all, 

I'm trying to create a cumulative graph according to a project, year, quarter, and its budget.

Due to missing Quarters in my table ( i.e. row for the year 2022 Q2 does not exist), 

my graph is not working well,  the quarters (that does not exist)  are shown in the graph but hold the wrong data.

how can I delete those quarters from the graph or give them the value 0? 

 

Thanks in advance! 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for your answer!

In the meantime, I created an index column and did the measure based on the index. 

then I filtered all the rows so that their index is not blank and it worked.

 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Have a separate table with all QTR year

 

qtr= Addcolumn( generate(distinct(Table[Year]), generateseries(1,4,1)) , "year Qtr", [Year]*10 +[value]

, "year Qtr name",( [Year]*10)&" Q" &[value]

)

 

In your table also have year Qtr name

 

and join two

 

and have a measure like

 

calculate(Sum(Table[budget]), Filter(all(Qtr), Qtr[year Qtr] <= max(Table[year Qtr]) ))

 

use columns from qtr table in visual

Anonymous
Not applicable

Thank you for your answer!

In the meantime, I created an index column and did the measure based on the index. 

then I filtered all the rows so that their index is not blank and it worked.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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