cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
LaurenTSloan
Regular Visitor

Create Table from multiple rows

I have a table currently that I want to create a unique row for an ID for with the columns where values are not null, have that date.  See table below (current table) and then see what I am trying to create (future table).

REF_IDIA DateSDO Date
725481/23/2023null
72548null1/24/2023
716572/1/2023null
71657null2/5/2023
7654612/23/2022null
76546null1/8/2023
754322/4/2023null
75432null2/4/2023

 

FUTURE TABLE:

 

REF_IDIA DateSDO Date
725481/23/20231/24/2023
716572/1/20232/5/2023
7654612/23/20221/8/2023
754322/4/20232/4/2023
2 REPLIES 2
FreemanZ
Super User
Super User

hi @LaurenTSloa 

you can plot a table visual with the mentioned three columns directly and choose latest for both data columns, like:

FreemanZ_1-1680967428733.png

 

or you create a calculated table with:

tbl2 = 
ADDCOLUMNS(
    VALUES(tbl[REF_ID]),
    "IA Date", CALCULATE(MAX(tbl[IA Date])),
    "SDO Date", CALCULATE(MAX(tbl[SDO Date]))
)

it worked like:

FreemanZ_2-1680967489055.png

 

BrianConnelly
Resolver III
Resolver III

Create a summary table...

SummaryTable = SUMMARIZE(TableName,REF_IDIA,"Date",MAX([Date]),"SDO Date",MAX([SDO Date]))

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors