Forum Discussion
demultiplying rows on a table based on a specific filtered value
- Anonymous1 year ago
Hi Cobalt2234
Here are 2 workarounds for your reference:
1:
Click Transform data to go to power query.
First of all, Duplicate the DIMTABLE(Another table will do the same).
Click the Merge Queries in the Home pane:
Select the Application_CD columns and click OK.
Expand the table:
The result is as follow:
2:
Add a calculated table:
Table = SELECTCOLUMNS( FILTER( CROSSJOIN( 'DIMTABLE', 'FACT_TABLE' ), 'DIMTABLE'[Application_CD] = 'FACT_TABLE'[Application_CD] ), 'DIMTABLE'[Service_CD], 'FACT_TABLE'[Application_CD], 'FACT_TABLE'[DATE], 'FACT_TABLE'[VAL1], 'FACT_TABLE'[INF], 'FACT_TABLE'[DESC] )The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you prefer DAX, you can use a calculated table to achieve the result. Here's the DAX formula to create a new table that combines both:
Final Output
After applying either method, you’ll get the combined table as desired:
Service_CD Application_CD DATE VAL1 INF DESC| 10076 | 6832 | 01.oct.24 | 1 | a | fds |
| 10076 | 6832 | 02.oct.24 | 2 | b | sf |
| 10076 | 6832 | 03.oct.24 | 3 | c | sfddf |
| ... | ... | ... | ... | ... | ... |
Thanks for this Dax solution.
I decided to use the Power Query solution above that I thought was better for performance issue, the real table is quite big.
But anyway, I'll keep also your solution provided in my notes.
Thanks a lot for your time and help provided.