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 Eveyon
I am new and i speak english not well.
Pls help me for this case:
I have table name: "NL_TH"
So, I want creat new table as below
I cannot user pivot and unpivot because Table :NL_TH is not original data .
Thank for help
Solved! Go to Solution.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated table.
Table =
SUMMARIZE('NL_TH',NL_TH[month])
2. Create calculated column.
A =
CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="A"&&'NL_TH'[month]=EARLIER('Table'[month])))
B =
CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="B"&&'NL_TH'[month]=EARLIER('Table'[month])))
C = CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="C"&&'NL_TH'[month]=EARLIER('Table'[month])))
D = CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="D"&&'NL_TH'[month]=EARLIER('Table'[month])))
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for help
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated table.
Table =
SUMMARIZE('NL_TH',NL_TH[month])
2. Create calculated column.
A =
CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="A"&&'NL_TH'[month]=EARLIER('Table'[month])))
B =
CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="B"&&'NL_TH'[month]=EARLIER('Table'[month])))
C = CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="C"&&'NL_TH'[month]=EARLIER('Table'[month])))
D = CALCULATE(SUM('NL_TH'[value]),FILTER('NL_TH','NL_TH'[DONVI]="D"&&'NL_TH'[month]=EARLIER('Table'[month])))
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
have you tried to use matrix to display this?
Proud to be a Super User!
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 |
---|---|
97 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |