Forum Discussion
Measure with two different columns
- 4 years ago
Yes, that's kind of sample data. However, you can simplify that and not the screenshot. It's very hard for us to create the solution based on the screenshot. You can just paste some data in the reply. At last, pls let us know what the result you want to get based on the data you provided.
i just created some simple data and provide a solution. pls see the attachment and check if this is what you want.
Hey levialae ,
can you show the relationship?
Otherwise you should also be able to calculate that with the CALCULATE function and some modification of the filter context. What exactly do you need?
Hi Denis
I have attached a screenshot of the relationship.
The relationship is between the two 'daily' columns. I have also tried the two 'DateTime' columns which I didn't change anything for me.
So what I need is:
The oil use daily divided by the daily tons produced (kiln 1 scale). This will give me how much oil did we use per ton of production.
- ryan_mayu5 years agoSuper User
The relationship is many to many. You need to clean up the data and make it to be one to many or many to one.
- levialae5 years agoFrequent Visitor
Hi again Ryan
It might be a stupid question, but how would I go about cleaning up date data?
- ryan_mayu5 years agoSuper User
I think you need to check
1. if there is any blank value for FQN
2. what's the reason caused many to many relationship? Is it correct that you can have values that does not exists in the other table?
at last i think you need a DIM table
Table 2 = DISTINCT(UNION(DISTINCT('Table'[FQN]),DISTINCT('Table (2)'[FQN])))use this table and create one to many relationships with the current two tables.