Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Looking for assistance!
We are trying to use the difference between; TestID 2, V1 and TestID 1 V1 in Table1, as the Z value for V1 in Table2.
In Table1 I have some data from a test.
We have created measures to return the differnce between TestID 2, V1 and TestID 1 V1 as well as TestID 2, V2 and TestID 1 V2, they return the below.
Measure
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, my understanding is that you are going to put the difference of V1 (Last one - Top one) to the set V1-Z.
Assume that we have the following two tables:
Then we can create a measure like below:
Z = IF ( MIN ( Table2[VAR] ) = "V1", CALCULATE ( MIN ( Table1[V1] ), TOPN ( 1, Table1, Table1[TestID], DESC ) ) - CALCULATE ( MIN ( Table1[V1] ), TOPN ( 1, Table1, Table1[TestID], ASC ) ), CALCULATE ( MIN ( Table1[V2] ), TOPN ( 1, Table1, Table1[TestID], DESC ) ) - CALCULATE ( MIN ( Table1[V2] ), TOPN ( 1, Table1, Table1[TestID], ASC ) ) )
The result will like below:
Best Regards,
Teige
Hi @Anonymous ,
According to your description, my understanding is that you are going to put the difference of V1 (Last one - Top one) to the set V1-Z.
Assume that we have the following two tables:
Then we can create a measure like below:
Z = IF ( MIN ( Table2[VAR] ) = "V1", CALCULATE ( MIN ( Table1[V1] ), TOPN ( 1, Table1, Table1[TestID], DESC ) ) - CALCULATE ( MIN ( Table1[V1] ), TOPN ( 1, Table1, Table1[TestID], ASC ) ), CALCULATE ( MIN ( Table1[V2] ), TOPN ( 1, Table1, Table1[TestID], DESC ) ) - CALCULATE ( MIN ( Table1[V2] ), TOPN ( 1, Table1, Table1[TestID], ASC ) ) )
The result will like below:
Best Regards,
Teige
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |