Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

Problem with Percentage when comparing 2 year billing amounts

Hello, I need to compare the billing value of 2 years dynamically. for this I created 2 calendar tables and related them to the Invoice fact table and created the measures as shown below.

Base Year = CALCULATE(SUM('Invoices'[total]), ALL('dCalendarComparative'))

Compare Year = CALCULATE(SUM('Invoices'[total]), ALL('dCalendarBase'))

then I placed the year fields in the upper left part of the dashboard as shown in the image below and used parameters to filter by year, month or quarter.

these parameters look for information from the Invoices fact table, because that's where the general information is.


Param Chart = {
("Year", NAMEOF(Invoices[Year]), 0),
("Month", NAMEOF('Invoices'[MonthName]), 1),
("Quarter", NAMEOF('Invoices'[QuarterName]), 2)

in the first graph I just need the information of the values and it is returning me correctly. but in the bottom graph where I need the percentage it keeps returning me -100% and with all years. I need help to fix this.


the correct value is 36% as I put it on a card at the top.


% Measure = CALCULATE(DIVIDE([Compare Year], [Base Year]))-1




Super User
Super User

@WillianRamos , Refer my approch

Power BI Abstract Thesis: How to use two Date/Period slicers

unfortunately not, the only problem I'm facing is the percentage issue, the rest is correct.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors