Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kinitundi
Frequent Visitor

Power BI Help

Hi Group,

I am new user here, i want some help in power bi where i am posting the table and output which i want.

Here days count is manual entry, if we can get from target date column similar result will be great. or you can use days count.

Thanks in Advance

ProjectProject 2Target DateDays Count
KBFeat 111-06-202330
KBFeat 212-07-202360
KBFeat 313-06-202330
KBFeat 414-07-202360
KBFeat 515-09-2023180
APPMMMFeat 111-06-202330
APPMMMFeat 212-07-202360
APPMMMFeat 313-06-202330
APPMMMFeat 414-07-202360
APPMMMFeat 515-09-2023180
IntegrationFeat 111-06-202330
IntegrationFeat 212-07-202360
IntegrationFeat 313-06-202330
IntegrationFeat 414-07-202360
IntegrationFeat 515-09-2023180

 

Output

Project306090180
KBFeat 1, Feat 3Feat 2, Feat 4 Feat 5
APPMMMFeat 1, Feat 3Feat 2, Feat 4 Feat 5
IntegrationFeat 1, Feat 3Feat 2, Feat 4 Feat 5
3 ACCEPTED SOLUTIONS
v-yiruan-msft
Community Support
Community Support

Hi @kinitundi ,

You can create a measure as below to get it, please find the details in the attachment.

Measure = CONCATENATEX ( VALUES ( 'Table'[Project 2] ), 'Table'[Project 2], "," )

vyiruanmsft_1-1687919449511.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Just in case you want a Power Query solution, then this solution works

let
    Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Project", type text}, {"Project 2", type text}, {"Target Date", type date}, {"Days Count", Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Project", "Days Count"}, {{"Projects", each Text.Combine([Project 2],",")}}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Grouped Rows", {{"Days Count", type text}}, "en-IN"), List.Distinct(Table.TransformColumnTypes(#"Grouped Rows", {{"Days Count", type text}}, "en-IN")[#"Days Count"]), "Days Count", "Projects")
in
    #"Pivoted Column"

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Hi  @kinitundi ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
kinitundi
Frequent Visitor

Thank you very much for your reply. it worked

Ashish_Mathur
Super User
Super User

Hi,

Just in case you want a Power Query solution, then this solution works

let
    Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Project", type text}, {"Project 2", type text}, {"Target Date", type date}, {"Days Count", Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Project", "Days Count"}, {{"Projects", each Text.Combine([Project 2],",")}}),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Grouped Rows", {{"Days Count", type text}}, "en-IN"), List.Distinct(Table.TransformColumnTypes(#"Grouped Rows", {{"Days Count", type text}}, "en-IN")[#"Days Count"]), "Days Count", "Projects")
in
    #"Pivoted Column"

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yiruan-msft
Community Support
Community Support

Hi @kinitundi ,

You can create a measure as below to get it, please find the details in the attachment.

Measure = CONCATENATEX ( VALUES ( 'Table'[Project 2] ), 'Table'[Project 2], "," )

vyiruanmsft_1-1687919449511.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much

Hi  @kinitundi ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.