Forum Discussion
Exchnage rate issue
Hi kumarm,
Can you please share some dummy data to test? It should help troubleshoot and test the formula.
How to Get Your Question Answered Quickly
In addition, it seems like a common measure multiple aggregate calculation issues, please take a look at following blog about measure aggregation on the total level:
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
Dear Greg_Deckler ,
The issue is is applying exchange rate.In my fact table Report,I have lowest granularity as quarterkey.Which is combination of year and Quarter number.But exchange rate,I have for every date.So when I select the date from dim exchange date ,this date has one exchange date,but when it goes for lookup in Fact_report,it has lowest granularity as quarter key.So here exchnage rate is multiple in this case and getting summed up.Which create a problem.So I want only one exchnage rate against each currency from the lookup.
Note:-My dim_period is not normal date dimension table.I mean here the lowest granularity is not date but combination of year and month which is called as perioddate.This date in linked to real date dimension table.
The above logic works fine in another fact table where I have lowest granularity map between fact table and dim_period.
Please find test model in below link.
https://drive.google.com/file/d/1Y9Vuwcq20rV5kWcmNZqtwsRk2gNlwtwl/view?usp=sharing
Thanks
Manoj
- Anonymous5 years agoNot applicable
Hi kumarm,
In fact, since power bi data mode table not existed row/column index. So if you use lastnonblank function and try to pick up the 'last' records, it may not return the result you wanted. You can take a look at the below blog to know more about this function.
As you said it has rolled up your records and get the wrong result, what Target_Value value you wanted? AFAIK, power bi dax formula contains a few functions that include iterator feature, if you not wan to rolling up the records, you can consider using other functions instead sumx.
Regards,
Xiaoxin Sheng- kumarm5 years agoFrequent Visitor
I still have the issue.Can anybody help me on this.