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.
Hi All Community!
I'm try to create aDAX formula to achive this result.
Suppose you have a table like this:
AVG 1 | AVG2 | week |
3,37% | 84,52% | w37 |
5,66% | 6,49% | w37 |
70,45% | 6,13% | w38 |
15,29% | 1,99% | w38 |
16,56% | 0,49% | w39 |
11,52% | 0,38% | w39 |
17,06% | 0,00% | w40 |
6,15% | 99,53% | w40 |
My goal is from this table create another like this:
w37_AVG1 | w37_AVG2 | w38_AVG1 | w38_AVG2 | w39_AVG1 | w39_AVG2 | w40_AVG1 | w40_AVG2 |
3,37% | 84,52% | 70,45% | 6,13% | 16,56% | 0,49% | 17,06% | 0,00% |
5,66% | 6,49% | 15,29% | 1,99% | 11,52% | 0,38% | 6,15% | 99,53% |
I'm tryng some DAX function (i.e. Table command with Filter) but at the moment I'm still in the dark !
Thanks in advance to whom can hel me ...
Ago
Solved! Go to Solution.
Hi @v-xulin-mstf have a nice day!
really this seem a Columbus egg solution!! It's seem totally meet my requirement!!
Thanks a lot!!
A.
@AgoZ_KH , Seem like one column is missing, because not sure how your second row.
Unpivot or transpose
https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
In matrix - Show on row option with selected Col /rows
Thanks @amitchandak
excuse my late answer! It's a good suggestion, but in my scenario the problem is pivot in the same time two columns and this seem not to achieve my principal goal.
Ago
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |