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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Jmenas
Advocate III
Advocate III

Transform table with distinct values and no Dates

Hi all,

 

I have a problem with extracting some of my values for a table then having them with out a date but keep the ids from the other columns. What i mean is that i have a table like this: 

 

examplePID.PNG

 

 

 

 

I want to have a sum of the delivers to each client and then to sort the client in order of more delivers, but at the same time have the driversids either concatenated or add as a column and then url of the routes ffor the drivers (create in power query) . 

I try to filter them out with a anking but doesn't wok:

(Column)Ranking = 
var Summe1 = SUM(table[value])
var Summe2 = SUM(table[value)
var Summe3 = SUM(table[value)
Return
SWITCH(TRUE(), 
		(Summe1+Summe2+Summe3) >= 15, "high",
		AND((Summe1+SummeComp2+Summe3)>9, 
     (Summe1+Summe2+Summe3)<15), "Medium", "low") 

Measure X =Calculate(Sum(table[deliver A]), Ranking = "high")

and so on, but want I want is so,mething like this:

 

endtable.PNG

In this way I try to concatenate the driver and then give it a single url. But the date always separates the values.  

 

Do you know how is possible if I have to use another Column or measure or just rebuild a new table without dates?

 

I know is a little bit complicated let me know if you need more info.

 

Thanks in advance,
Jorge

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Jmenas,

 

According to your description above, you should be able to use the formula below to create calculate table in this scenario.Smiley Happy

Table = 
SUMMARIZECOLUMNS (
    Table1[Product Id],
    "Deliver A", SUM ( Table1[Deliver Client A] ),
    "Deliver B", SUM ( Table1[Deliver Client B] ),
    "Drivers", CONCATENATEX ( Table1, Table1[Driver], "," ),
    "URL", FIRSTNONBLANK ( Table1[URL], 1 )
)

t2.PNG

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Jmenas,

 

According to your description above, you should be able to use the formula below to create calculate table in this scenario.Smiley Happy

Table = 
SUMMARIZECOLUMNS (
    Table1[Product Id],
    "Deliver A", SUM ( Table1[Deliver Client A] ),
    "Deliver B", SUM ( Table1[Deliver Client B] ),
    "Drivers", CONCATENATEX ( Table1, Table1[Driver], "," ),
    "URL", FIRSTNONBLANK ( Table1[URL], 1 )
)

t2.PNG

 

Regards

@v-ljerr-msft Thanks that help a lot. I had some other issues regarding the dates but I could solved it. 
 Thanks!

 

cheers,
Jorge

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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