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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mr_Asrar
New Member

Transaction type and volume based costing

I am pretty new to the Power BI world and just starting to learn things, i am looking for a cost calculation in the below manner.

 

Essentially this cost model needs to be applied for each month individually based on the total volume. The table consists of column that can identify the transaction type, along with date column.

 

Any help or suggestion on how to achieve this would be great.

 

 

Untitled.jpg

4 REPLIES 4
amitchandak
Super User
Super User

@Mr_Asrar ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format?
Appreciate your Kudos.

 

@amitchandak @pranit828 

 

Alright, sorry about that let me elaborate.


I have transactions in two categories, 1 English and 2 Non-English. I would like to calculate the cost of these transactions monthly. The cost for each non-English transaction is $2 only after 500 transactions but for the first $500 it's $2.4. The cost for English transaction is fixed at $1500 as long as the total count of English transactions is less than 5300.

Hope this gives a bit of clarity, let me know otherwise.

Hi @Mr_Asrar 

How do you have your data laid out in table?

How have you calculated the all the rows(Total transaction) or is it in a column?

 

When you need month wise break down how do you need the data to be presented?

Is $2 for non-english per transaction?

what about the english transactions if the transaction count is more than 5300?





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
pranit828
Community Champion
Community Champion

HI @Mr_Asrar 

 

Not much details. Please elaborate.

From what I understand 

You need to use

Monthly_cost = CALCULATE(SUM(table[Column to sum]), ALLEXCEPT(MONTH(table[Date]), table[transaction type]))





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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