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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Creating Invoice Net Amount USD Line in Power BI

Hi, I hope this message finds you well. I am reaching out to seek your expertise and assistance in replicating a specific feature from a Tableau report into Power BI. The challenge I am currently facing is in creating an "Invoice Net Amount USD" line that displays percentages as shown in the Tableau report.

I have attempted to achieve this in Power BI using various approaches, but I haven't been successful in replicating the exact behavior. It appears that the DAX formula I have been using might not be suitable for this specific requirement.

Could you please guide me on the appropriate DAX formula or any other method to achieve a similar percentage display for the "Invoice Net Amount USD" line in Power BI?

I appreciate any insights or suggestions you can provide to help me overcome this hurdle. Thank you in advance for your time and assistance.

Manasa1994_0-1705688705605.png

 

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

hello @Anonymous 

what you are trying to achieve is a cumulative %. 

 

Daniel29195_0-1705706238459.png

 

 

sample data used : 

Daniel29195_1-1705706258029.png

 

measure : 

Daniel29195_2-1705706273310.png

 

code : 

Measure 14 =

var cumlative =
CALCULATE(
    SUM('Table (15)'[qty]),
    WINDOW(
        0,
        ABS,
        0,
        REL,
        CALCULATETABLE(
        SUMMARIZE(
            'Table (15)',
            'Table (15)'[item]
        ),
        ALLSELECTED( 'Table (15)'[item]))
        ,
        ORDERBY('Table (15)'[item], ASC )
    )
)

var total =  CALCULATE(
    SUM('Table (15)'[qty]), ALLSELECTED( 'Table (15)'[item])
    )

    RETURN
    divide(cumlative, total, 0 )
   
 
 
hope this works.

Nb:   the orderby in the window function, should be the same as the order of the visual . 

Daniel29195_3-1705706366394.png

 

if the x-axis is randomly ordered, i would suggest to create a column to order this column . 
this can be done as follow : 

go to table view : 

select the column in question

go to sort by column

choose the index . 

Daniel29195_4-1705706500915.png

 

 

 

hope this helps 

 

best regards.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

but for me it's coming like this

Manasa1994_0-1706884468015.png

 

Daniel29195
Super User
Super User

hello @Anonymous 

what you are trying to achieve is a cumulative %. 

 

Daniel29195_0-1705706238459.png

 

 

sample data used : 

Daniel29195_1-1705706258029.png

 

measure : 

Daniel29195_2-1705706273310.png

 

code : 

Measure 14 =

var cumlative =
CALCULATE(
    SUM('Table (15)'[qty]),
    WINDOW(
        0,
        ABS,
        0,
        REL,
        CALCULATETABLE(
        SUMMARIZE(
            'Table (15)',
            'Table (15)'[item]
        ),
        ALLSELECTED( 'Table (15)'[item]))
        ,
        ORDERBY('Table (15)'[item], ASC )
    )
)

var total =  CALCULATE(
    SUM('Table (15)'[qty]), ALLSELECTED( 'Table (15)'[item])
    )

    RETURN
    divide(cumlative, total, 0 )
   
 
 
hope this works.

Nb:   the orderby in the window function, should be the same as the order of the visual . 

Daniel29195_3-1705706366394.png

 

if the x-axis is randomly ordered, i would suggest to create a column to order this column . 
this can be done as follow : 

go to table view : 

select the column in question

go to sort by column

choose the index . 

Daniel29195_4-1705706500915.png

 

 

 

hope this helps 

 

best regards.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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