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.
Hello, I'm currently working on a project where I have to create/modify a table that I have to put down values where I have to substract using 2 values located in the same column. However I'm currently having difficulties on doing so is there a sollution/assistance for this problem? (Note: The table contains 22 rows in which row 1 and row 12 needs to be substracted, same applies for row 2 and 13, 3 and 14...)
Thank you so much for your time
Hi @EveryUser ,
I have created a simple samplem please refer to my pbix file to see if it helps you.
Create a measure.
Measure = var _value=CALCULATE(MAX('table'[Column 1 ]),FILTER(ALL('table'),'table'[Index]=SELECTEDVALUE('table'[Index])+4))
return
MAX('table'[Column 1 ])-_value
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For example in this table a column needs to generated by substracting sample 1 in column 1 and sample 5 in column 1 which also applies for 2-6, 3-7 and 4-8. And another column needs to be generated with the same application but on column 2.
Column 1 | Column 2 | |
Sample 1 | 5 | 3 |
Sample 2 | 2 | 1 |
Sample 3 | 1 | 3 |
Sample 4 | 0 | 4 |
Sample 5 | 4 | 8 |
Sample 6 | 2 | 5 |
Sample 7 | 1 | 2 |
Sample 8 | 7 | 1 |
hi @EveryUser
could you also paste the expected result column? for instance, where do you plan to put the subtraction result of sample 1 and 5?
The result will be
Column 1 | Column 2 | |
Difference Between 1 and 5 | 1 | -5 |
Difference Between 2 and 6 | 0 | -4 |
Difference Between 3 and 7 | 0 | 2 |
Difference Between 4 and 8 | -7 | 3 |
Values for column 1 are 1,0,0,-7
For some reason the values on the first column are so closely together with sample titles but the values for the first column are 5,2,1,0,4,2,1,7 respectively
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |