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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
romovaro
Post Partisan
Post Partisan

Add information in extra columns same row

Hello Pbix community

 

I have a question regarding the table below:

 

I have Principal Project number in the CUID column and the integration project number is the same as the CUID column but with

an extra "i".

 

 

NameCIDCUIDCountryProject ScopeActual/Schedule Go LiveProject Manager / Coordinator
Customer AAAANCPFFR01FranceStandard2020-01-01Dorottya Szabo
Customer AAAANCPFFR01iFranceIntegration WW2021-01-01Mary Mayers
Customer AAAANCPFFR02FranceStandard2021-01-01John Smith
Customer AAAANCPFFR03FranceStandard2021-01-01Akira Wars
Customer BASPNASPNMY01MalaysiaStandard2021-01-01Gerard Monte
Customer BASPNASPNMY01iMalaysiaIntegration WW Sandra Verdi
Customer BASPNASPNES01SpainStandard2021-01-01Mary Mayers
Customer BASPNASPNCN01ChinaStandard2020-07-31John Smith
Customer BASPNASPNCN01iChinaIntegration WF2020-07-01Akira Wars

 

I have created diff formulas to show "if integration or not", etc.. but I have been asked to create a new visual showing all the information but using ONLY one row.

 

THe idea would be to show only the Principal Project number and "If integration included" then show all the columns in different columns but same row. (excel image below)

 

romovaro_0-1711366609180.png

 

Any tip welcome

 

thanks.

 

df

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@romovaro Probably need a disconnected table for your columns and a single measure that, based on the column returns the corresponding information. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@romovaro Probably need a disconnected table for your columns and a single measure that, based on the column returns the corresponding information. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

As discussed I created an extra table using the "summarize" function with the columns I wanted to "duplicate" to add in the main table

romovaro_1-1711617569257.png

In the extra table I created a column (called CUID-1) that allows me to get the info I need and I used "Lookupvalue" function to get the results:

 

CUID Integration = LOOKUPVALUE(Tabla[CUID],Tabla[CUID-1],'PV Cel File'[CUID],"")

CUID with Scope = LOOKUPVALUE(Tabla[Project Scope],Tabla[CUID-1],'PV Cel File'[CUID],"")
 
romovaro_2-1711618088535.png

 What I realize is that is not working all the time. 

From the image above, i have Australia and Austria. It seems with Australia I get all the info in my columns highligthed in blue but for Austria (same Information, Same Fields, etc...) is blank. For "Status Integration" it seems all fields are working ok. Any idea?

romovaro_3-1711618322539.png

THanks

 

 

hi @Greg_Deckler 

 

I decided to use powerquery...duplicate table + merge.

Worls fine.

 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.