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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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