Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Team,
I have requirement like this in Table visual using like AC, Fridge, Fan, TV are calculated new measures and month 1 and month 2 and month 3 are coming new column .
| Time | AC | Fridge | Fan | TV |
| Month 1 | 2 | 6 | 8 | 9 |
| Month 2 | 5 | 5 | 3 | 7 |
| Month3 | 7 | 6 | 2 | 3 |
i want result has like transpose into with help of Dax i required
| Timeframe | Month 1 | Month 2 | Month3 |
| AC | 2 | 5 | 7 |
| Fridge | 6 | 5 | 6 |
| Fan | 8 | 3 | 2 |
| TV | 9 | 7 | 3 |
Solved! Go to Solution.
Hi @gopik8000 ,
Here are the steps you can follow:
1. Create calculated table.
Flag1 =
UNION(
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "AC", "Target", 'Table'[AC]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "Fridge", "Target", 'Table'[Fridge]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "Fan", "Target", 'Table'[Fan]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "TV", "Target", 'Table'[TV]))
True =
var _table1=
DISTINCT('Flag1'[Timeframe])
return
SUMMARIZE(
_table1,[Timeframe],
"Month 1",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 1"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]),
"Month 2",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 2"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]),
"Month 3",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 3"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]))
2. 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
Hi @gopik8000 ,
Here are the steps you can follow:
1. Create calculated table.
Flag1 =
UNION(
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "AC", "Target", 'Table'[AC]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "Fridge", "Target", 'Table'[Fridge]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "Fan", "Target", 'Table'[Fan]),
SELECTCOLUMNS('Table', "Month", 'Table'[Time], "Timeframe", "TV", "Target", 'Table'[TV]))
True =
var _table1=
DISTINCT('Flag1'[Timeframe])
return
SUMMARIZE(
_table1,[Timeframe],
"Month 1",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 1"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]),
"Month 2",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 2"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]),
"Month 3",SUMX(FILTER(ALL('Flag1'),'Flag1'[Month]="Month 3"&&'Flag1'[Timeframe]=EARLIER('Flag1'[Timeframe])),[Target]))
2. 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 alot it's working fine
Ac, Fridge , TV,Fan are Calculated measures can't use other than values field
| Timeframe | Month 1 | Month 2 | Month3 |
| AC | 2 | 5 | 7 |
| Fridge | 6 | 5 | 6 |
| Fan | 8 | 3 | 2 |
| TV | 9 | 7 | 3 |
Hi @gopik8000 just replace row / columns in table / matrix view.
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |