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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AApilot
New Member

Need help please - appending new data, list of clients

Hello guys,

 

I have a problem that I'm going round in circles trying to solve but can't. 

I have a list of clients (c. 500k rows) which is refreshed monthly (at the end of month) - some clients switch to pay from one currency to another, i.e. INV_CURRENCY column ABC client paid on Jan-2015 in USD but on Feb-2015 switched to CAD. I use LOOKUP function for CLIENT_NUMBER column in the "REVENUE" dataset to determine the invoice currency for a specific client and period and thus calculate the revenue (Revenue file, all values are in USD).

 

I stuck as every month the list of clients is changing and if I simply replace the data with the latest version, it will affect all periods which I don't want to. I'd like to keep a list of clients with monthly data (just add them with new month data ) so the report will show exact data for each month .

I've tried many diffferent solutions like i.e. Inremental Refresh (Datasets + dataflows) or combine CLIENT_NUMBER with DATA REFRESHED columns to have unique client numbers but Power BI doesn't allow to link DATA REFRESHED column (from list of client file) with Calendar (relation is Many to Many) so tables are not showing correct values for periods. 

 

I'm wondering if there is any solutions for this? Would be so greatful to everyone who can help.

 

Revenue:

DATECOMPANY CODECLIENT_NUMBERAMOUNT in USD
1/1/2015YT11111111672.84
1/2/2015YT11222222103.05
1/4/2015YT113333330.09
1/2/2015PL124445550.06
1/2/2015PL1277788818.64
1/2/2015PL1299900084.10
1/3/2015PL1299900046.33
1/4/2015PL129990000.01
1/5/2015PL1299900072.23
1/6/2015PL124445559.67
1/7/2015PL124445557.01
1/8/2015YT111111116.02
1/8/2015YT111111117.59
1/8/2015YT111111118.26

 

List of clients:

 

CLIENT_NUMBERCLIENT_NAMEINV_CURRENCYJOINEDDATA REFRESHED
111111ABCUSD1/1/1999Jan-15
222222XYZCAD1/1/2015Jan-15
333333DFEEUR1/1/2005Jan-15
444555CYYCAD1/5/2004Jan-15
777888TYYCAD1/12/2005Jan-15
999000XZAAEUR1/11/2005Jan-15
111111ABCCAD (changed currency)1/1/1999Feb-15
222222XYZCAD1/1/2015Feb-15
333333DFENOK (changed currency)1/1/2005Feb-15
444555CYYUSD1/5/2004Feb-15
777888TYYCAD1/12/2005Feb-15
999000XZAAEUR1/11/2005Feb-15
0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.