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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
TimmK
Helper IV
Helper IV

Profitbase Income Statement Percentage

I use the visual "Financial Reporting Matrix by Profitbase" to create an income statement with custom rows. The measures I use are Amount and %. The % is the amount of the specific year compared to the amount of the current year. For example, for sales the amount of 2022 is 100 and the amount of 2021 is 80. Thus, the amount of 2022 is 25% higher than the amount of 2021.

 

Unfortunately, as you can see below in the "Actual" table the % values are added in the custom row "Total Operating Income" instead of calculating the correct % as seen in the "Desired" table. How can I achieve the correct % values?

 

I want that it is still possible that I can use the year slicer, for example to add the years 2019 and 2018 or to remove years.

 

1.PNG

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @TimmK,

You can try to use the following measure formula if helps:

% =
VAR currDate =
    MAX ( 'Date'[Date] )
RETURN
    DIVIDE (
        CALCULATE (
            [Sales],
            FILTER ( ALLSELECTED ( Table ), 'Table'[Year] = YEAR ( currDate ) )
        ),
        [Sales],
        0
    ) - 1

If that also doesn't help, 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 coding formula.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft,

The formula unfortunately did not help.

 

Here is a PBIX with sample data:

https://drive.google.com/file/d/1aCo7CueMm-9vUO2CYXnnNCnnV8FRdywX/view?usp=sharing

amitchandak
Super User
Super User

@TimmK , Can you share % formula


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Yes, here is the % measure:

% =
DIVIDE(
   CALCULATE(
      [Sales],
      ALL('Date'[Date].[Year]),
      'Date'[Year]=YEAR(TODAY())
   ),
   [Sales],
   0

)

-1

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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