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
GerryD
Frequent Visitor

Creating a variance and displaying correctly

I have two total sales amounts - one for 2017 and one for 2018 that I am creating on the fly. I am using the following formula to create a % variance between the two numbers  -

 

Qty% =
(DIVIDE (
    CALCULATE ( SUM ( table_PowerBI_FinishedGoods[Order Qty] ), table_PowerBI_FinishedGoods[Year] = 2018 ),
   CALCULATE ( SUM ( table_PowerBI_FinishedGoods[Order Qty] ), table_PowerBI_FinishedGoods[Year] = 2017 )  
) -1)  

 

I am computing the correct value but when I display the three columns in a matrix (2017 - 2018 - Qty%) it displays as follows -

 

2017   qty%    2018   qty%

xxx       xx          xxx    xx

 

The same qty% value displays twice -  once  next to each year.  If I use the 'table' visual, it displays as two lines.

 

The question is how I can display the 'qty%' only once per line.

 

Thanks for looking at this.

1 REPLY 1
ChandeepChhabra
Impactful Individual
Impactful Individual

Hi @GerryD

 

Please modify the measure

 

=DIVIDE( [2018 Measure] - [2017 Measure], [2017 Measure])

 

I am hoping it should work correctly

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.