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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Revenue Calculation for a specific selected criteria

Hi 

I am seeking help with  a revenue calculation 

 

I want a total revenue for packages marked "prepaid", I am aware I can just use a filter option but seeking a formula which will exclude everything under the packages but summarize me all prepaid packages with price 34

 

 

 

Capture help rev.JPG

1 ACCEPTED SOLUTION

hi, @Anonymous 

If you want to create a "New Column", you could use EARLIER Function to add a formula as below

New Column =
CALCULATE (
SUM(Totalrevenue nok 2018),
FILTER (
'Table',
EARLIER(Table[Packages]) = "Pre-Paid" && EARLIER(Table[Package Price]) = 34
)
)

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
HotChilli
Super User
Super User

Sales Measure =
CALCULATE (
    your calculation here, 
    FILTER (
        'Table', 
        Table[Packages] = "Pre-Paid" && Table[Package Price] = 34
    )
)

You'll need an explicit FILTER in your DAX formula, something like this

Anonymous
Not applicable

@HotChilli 

I was unable to input in the  "calculation here" field , my actual total reveunue calculation is as shown in the image is as a form of "New Column " .. as per your instructio below i couldnt do the following 

 

Sales Measure =
CALCULATE (
    Totalrevenue nok 2018, 
    FILTER (
        'Table', 
        Table[Packages] = "Pre-Paid" && Table[Package Price] = 34
    )
)


Capture help rev.JPG

hi, @Anonymous 

If you want to create a "New Column", you could use EARLIER Function to add a formula as below

New Column =
CALCULATE (
SUM(Totalrevenue nok 2018),
FILTER (
'Table',
EARLIER(Table[Packages]) = "Pre-Paid" && EARLIER(Table[Package Price]) = 34
)
)

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

a measure has to have an aggregation, usually for numbers that means SUM. 

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.