Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |