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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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