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
Aixia
Helper II
Helper II

How to handle the Sales Budget with different currency?

Hi

I have been struggling to solve the problem ´´Sales Budget with different currency´´. 

I appreciate a lot if I can get any tips and advice how to create the DAX measures for the questions below.

 

Basic:

  1. The company in this case has FY September-August.  
  2. SalesBudget (SB) for the coming FYs which needed to divide to the right FYs.  
  3. SalesBudget(SB) has different currency which needed to converted to SEK.

 

Prepared:

PBIX includes 3 tables: SalesBudget, Currency, and Fiscal calender.

 

Goal:

BS needed to divide to the correct FYs with the currency SEK.

 

Need help:  

If I understand right, first of all, the SB needed to divide to different FYs, then convent the different currency to SEK. If so,

  1. How to calculate the SB and how to divide the SB to correct FYs?
  2. How to convent currency from the different FYs to SEK?

 

Shared files:

https://www.dropbox.com/scl/fi/psqtcie4awagwknu4jh19/Sales-budget-202409-202808.xlsx?rlkey=hukjq33e2...

 

https://www.dropbox.com/scl/fi/llwq263vkymfpa4egv52o/BudgetSales-with-currency-240326.pbix?rlkey=d64...

 

Note that the PBIX file need to download first, then can open it.

 

Regards

Aixia

1 ACCEPTED SOLUTION

Thanks @OwenAuger 

I´ll check & let you know then. Thanks again.

 

Br/Aixia

View solution in original post

13 REPLIES 13
Aixia
Helper II
Helper II

Hi @OwenAuger 

I got the result exactly as I wanted! Thanks a lot!

 
Have a nice day!
Br/Aixia
Aixia
Helper II
Helper II

Hi

 

Is there anyone can give me any solutions/suggestions?

 

Regards

Aixia

Hi there @Aixia 

I had a look and have attached my suggested approach.

  1. In Power Query, created a function fnGenerateMonths that generates all "first of the month" dates between two given dates. This is for convenience, to be used in the other queries.
  2. Transform DimAnnual Currency with the help fnGenerateMonths (result shown below).
  3. Transform BudgetSales also using fnGenerateMonths, and join DimAnnual Currency. Multiply by the rates to produce column Amount SEK.
    (there are a few steps involved so take a look in Power Query, result shown below).
  4. In all queries remove unnecessary columns (you can adjust as needed).
  5. Don't load DimAnnual Currency to the model (you can load if you need it for another purpose).
  6. I turned of auto date/time to tidy up the model and fixed one of the columns in DimFiscal Calendar by removing ".[Date]".
  7. For testing purposes, I created two measures Amount and Amount SEK and a field parameter Measure Selection to allow switching between them.

 

DimAnnual CurrencyDimAnnual Currency

BudgetSalesBudgetSales

OwenAuger_2-1712383466059.png

 

Hope that helps! 🙂

 

Regards

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi @OwenAuger 

Thanks again for your solutions!  You´re amazing!

If you have time, I appreciate if you can explain more about the step of Inserted Multiplication for BudgetSales Table. See below..Aixia_1-1712912446651.png

 

What I did:

I added the column from the exampel ( from all column), but I got the strange results:

1) I have given many examples so that the new column understand that it is multiplcation ( Amount*SEK). But it didn´t work. 

Aixia_0-1712912368243.png

2) I got the (wrong) results only 100 of 684 rows. So 584 rows were missing.

 

What can I do in order to get the correct resuLts as yours? Thanks.

 

Br/Axiia

 

 

Hi again @Aixia 

Just checking you're still having trouble?

  • I would not use the "Column From Examples" function for a straightforward calculation.
  • The "Inserted Multiplication" step in your screenshot looks correct (in itself).

Could you share you current working file if you're still having trouble?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi @OwenAuger 

Thanks for your reply. I´m a beginner in PBI. I must to say that I´ve leaned a lot from your solution.

 

To your questions: Yes. problem remains. 

The "Inserted Multiplication" step in the screenshot came from your solution and that´s correct.

 

Now I know that "Column From Examples" function isn´t the correct way to calculate multiplication in this case. 

I attached the same pbix which came from you. 

https://www.dropbox.com/scl/fi/zujvbfsw8xg2qk8dx5nsp/BudgetSales-with-currency-240326-Owen-edit.pbix... 

 

I´d like to know which function you used and how to do it gradually about the step ´´ Inserted Multiplication´´. 

Aixia_0-1712927932165.png

 

Regards

Aixia

Hi again @Aixia 

Here is a quick recording of how I created the "Inserted Multiplication" step using the interface.

You could als use the Add Column > Custom Column dialog box.

 

Inserted Multiplication.gif

 

Hope that helps! 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi @OwenAuger 

Thanks a lot for explaining! Appreciate a lot!

Have a nice day.

 

Br/Aixia

Hi @Aixia 

Here's how I created the field parameters for measure selection between Amount Local Currency and Amount SEK:

 

Create Field Parameter.gif

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi @OwenAuger 

Thanks!!

I appreciate it a lot for your explaination. 

Br/Aixia

Thanks @OwenAuger 

I´ll check & let you know then. Thanks again.

 

Br/Aixia

v-tianyich-msft
Community Support
Community Support

Hi @Aixia ,

 

I have a question, if this user belongs to more than one period at the same time, how does this SEK need to be calculated?

vtianyichmsft_2-1711521028240.png

 

vtianyichmsft_1-1711521007441.png

 

Best regards,
Community Support Team_ Scott Chang

 

 

Hi @v-tianyich-msft 

 

Nice to get some response to this problem. Thanks!

 

To your question/example:

1) 

Aixia_1-1711529133577.png

 

Since the budget belong to the different period for every user, we need to divide the budget to the correct fiscal year first (Sep.-Aug.). See below. 

 

Aixia_0-1711529015869.png

 

2) 

Aixia_2-1711529264549.png

Then we need to convent currency from different fiscal year to SEK. It will be like this in the end.

 

Aixia_3-1711529411574.png

 

Looking forward to any solutions/suggestions. 

 

Kind regards

Aixia

 

 

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.