Forum Discussion
kinitundi
3 years agoFrequent Visitor
Table Creation in Power BI
Hi Team,
I want help from the group where i have an excel table which need to be converted into a specific table based on condition.
Excel Sample -
| Project | Project 2 | Target Date | Days Count |
| KB | Feat 1 | 11-06-2023 | 30 |
| KB | Feat 2 | 12-07-2023 | 60 |
| KB | Feat 3 | 13-06-2023 | 30 |
| KB | Feat 4 | 14-07-2023 | 60 |
| KB | Feat 5 | 15-09-2023 | 180 |
| APPMMM | Feat 1 | 11-06-2023 | 30 |
| APPMMM | Feat 2 | 12-07-2023 | 60 |
| APPMMM | Feat 3 | 13-06-2023 | 30 |
| APPMMM | Feat 4 | 14-07-2023 | 60 |
| APPMMM | Feat 5 | 15-09-2023 | 180 |
| Integration | Feat 1 | 11-06-2023 | 30 |
| Integration | Feat 2 | 12-07-2023 | 60 |
| Integration | Feat 3 | 13-06-2023 | 30 |
| Integration | Feat 4 | 14-07-2023 | 60 |
| Integration | Feat 5 | 15-09-2023 | 180 |
Output -
| Project | 30 | 60 | 90 | 180 |
| KB | Feat 1, Feat 3 | Feat 2, Feat 4 | Feat 5 | |
| APPMMM | Feat 1, Feat 3 | Feat 2, Feat 4 | Feat 5 | |
| Integration | Feat 1, Feat 3 | Feat 2, Feat 4 | Feat 5 |
2 Replies
- BIswajit_Das
Impactful Individual
Hello kinitundi
You can visualize the above data using a matrix and can acheive what you need.
orYou can create measures to get your results.
orYou can create a calculated table as per your requirement and get the required result. This below DAX may comes handy.
ResultTable =SUMMARIZECOLUMNS('YourTable'[Project],"30", CONCATENATEX(FILTER('YourTable', 'YourTable'[Days Count] = 30), 'YourTable'[Project 2], ", "),"60", CONCATENATEX(FILTER('YourTable', 'YourTable'[Days Count] = 60), 'YourTable'[Project 2], ", "),"180", CONCATENATEX(FILTER('YourTable', 'YourTable'[Days Count] = 180), 'YourTable'[Project 2], ", "))- kinitundiFrequent Visitor
Thank you very much, it helped me