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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
lrobbins7663
Regular Visitor

Line and Clustered Column Chart

I have created a Line and Clustered Column chart with the Fiscal Year as the X-axis, Registration Totals by Month as the Y-axis and the % Change from Fiscal Year to Fiscal Year for the Y-axis (Line).

   

The following measure gives me the Totals for the current Fiscal Year:

Crnt_TotalTrendMonByFY =
var year = MAX('Test Registrations Trending'[Fiscal Year])
var retVal = CALCULATE(SUM('Test Registrations Trending'[count])
, ALL('Test Registrations Trending'[Fiscal Year])
, 'Test Registrations Trending'[Fiscal Year] = year
)
return retVal
The next measure gives me the Totals for the preceding Fiscal Years:
Crnt_TotalTrendMonByFYLast =
var year = MAX('Test Registrations Trending'[Fiscal Year])-1
var retVal = CALCULATE(SUM('Test Registrations Trending'[count])
, ALL('Test Registrations Trending'[Fiscal Year])
, 'Test Registrations Trending'[Fiscal Year] = year
)
return retval
Then % Change is through this measure:
Crnt% =
DIVIDE([Crnt_TotalTrendMonByFY]-[Crnt_TotalTrendMonByFYLast],[Crnt_TotalTrendMonByFY])
 
I know this is pretty simple but I amreally new at Power BI. Everything displays correctly except that the line displays 100% for the first Fiscal Year.  I don't want the line to start until the second Fiscal Year so it shows the percentage change.  I also need to display on the Visual the actual percentage that I see in the Tool Tip when hovering over the line.  Are either of these two things possible?
Thank you to anyone who wants to help in advance! 🙂
1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @lrobbins7663 ,

Did you have any other fiscal years in your data source? For example, supposing current year is 2020, last year is 2019, did you have any values about 2018? If not, the percentage about 2019 as first fiscal year will be 100%.

In addition, if you only have two fiscal years in the table and you do not want to show 100% for the first fiscal year, what is your expected output? Could you please consider sharing more details about this issue or a sample file without any sesentive information for further discussion?

 

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors