Power BI: Missing Relationship or DAX query needed?

walbo

New Member
Joined
May 15, 2019
Messages
1
Hello everyone!

Hope you can help me on this
Here's the problem: I'm trying to automate wih power BI something that takes me 4 hours to do.

In a first source I get the following information (Excell file)
* Reference number
* Reference date
* Customer
* Country
* Duration in minutes
* Number of days (if = 1, then the problem occurred just at the reference date, otherwise, it lasted for 2, 3 or more days - days are before and on reference date)

So, I'm copy/pasting by hand from another tool the info below in uppercase in order to have a complete table like this:
* Reference number
* Reference date
* Customer
* SUPPLIER (NB: the suppliers I worked with on the reference date)
* Country
* Duration in minutes
* PURCHASE PRICE (average price over the number of days between (reference date - number of days) and (reference date))
* SALE PRICE (same remark)
* Number of days

By launching on PowerBI:
1 * I import my first table.
2 * I import the uppercase elements from the second table.
3 * I made a correspondence table because in my 2 databases, my clients do not have the same name
Still not walking with reports ...
I made a table apart with the days, a table supplier, and I tried all combinations I could ... still not working.

So, I thought a DAX request might help me.

In natural language, that would be:
In the first table, For (Reference Date), for this (Customer), to this (Country)
Please Mr Power BI, give me: the list of (SUPPLIERS) with for each of them, the (SELLING PRICE) and the (PURCHASE PRICE)
and please Mr Power BI, this price should be the average price between (date of reference - number of days) and (date of reference).

Except that in DAX, I could not make it.

So, can PowerBI solve my problem without DAX (in this case, there must be a relationship problem I presume)?
Or should I write a DAX query? And there, I face problems...

Thanking you for your help
In exchange, I know how to make "clafoutis"! :-)
Arnaud
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top