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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Wiene24
Helper II
Helper II

Sum with two standards

Hi,

 

I have the following problem:

 

FileTournumberPriceLo/La
1149071500LA
1149071500LO
2149071230LA
2149071230LO
3149072600LA
3149072600LO
1149072480LA
1149072480LO
4149073250LA
4149073250LO

 

Now I want to add a new Colomn that shows me on each row how much the total price was of the tournumber where LA/LO = "LO". I have to do it with a colomn because the report is based on orders and a order can be on multiple tours.

 

The filenumbers and tournumbers are alot of different numbers.

 

I want to create this:

 

FileTournumberTotal price of tour
1149071730
2149071730
31490721100
11490721100
4149073250

 

This I have to use to create a measurement dived the costs based on the file prices.

 

I hope it makes a bit sense, sometimes it's hard to explain what you exactly mean!

 

Kind regards,

 

Tim Wijnen

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Wiene24 ,

You can use following calculated column formula to summarize same tour price with 'lo' status:

Total Price =
CALCULATE (
    SUM ( Table[Price] ),
    FILTER (
        ALLSELECTED ( Table ),
        [LO/LA] = "LO"
            && [Tournumber] = EARLIER ( Table[Tournumber] )
    )
)

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Wiene24 ,

You can use following calculated column formula to summarize same tour price with 'lo' status:

Total Price =
CALCULATE (
    SUM ( Table[Price] ),
    FILTER (
        ALLSELECTED ( Table ),
        [LO/LA] = "LO"
            && [Tournumber] = EARLIER ( Table[Tournumber] )
    )
)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.