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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Rene_E
Regular Visitor

SUMMARIZE table data, DISTINCT and enter data manually

Hello all,

 

I have this table populated with data.

Rene_E_0-1640696592163.png

In this table are computers with their Operating System versions.
What I want to achieve is to create a new table "OS Version Mapping" with all unique values of column OSVersionCheck filtered on operatingSystem which need to contain the string "Windows". Additionally, I want to add a manual column called "End of Support Date" where I will manually enter the end of support date for that unique OS version.

 

I tried the following but got only unique rows. 

OS Version Mapping = FILTER(SUMMARIZE('AD - combined','AD - combined'[OSversionCheck],'AD - combined'[operatingSystem]),CONTAINSSTRING('AD - combined'[operatingSystem],"Windows"))
 
Adding a DISTINCT to this doesn't work.
OS Version Mapping = DISTINCT(FILTER(SUMMARIZE('AD - combined','AD - combined'[OSversionCheck],'AD - combined'[operatingSystem]),CONTAINSSTRING('AD - combined'[operatingSystem],"Windows")))
OS Version Mapping = 
var t = (FILTER(SUMMARIZE('AD - combined','AD - combined'[OSversionCheck],'AD - combined'[operatingSystem]),CONTAINSSTRING('AD - combined'[operatingSystem],"Windows")))
return
DISTINCT('t'[OSversionCheck]) <---- This is not possible with a temp table...

It also doesn't seem to be possible to add a new column to an existing table and add manual data.
In which case I think the only option is to create a new table with OSVersionCheck and End of Support Date data entered manually.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Rene_E , Try like

OS Version Mapping =SUMMARIZE( FILTER('AD - combined','AD - combined', CONTAINSSTRING('AD - combined'[operatingSystem],"Windows") ), 'AD - combined'[OSversionCheck],'AD - combined'[operatingSystem])

 

 

You can add manual data in formula only , you have check for every row value and do that

example

New column  = Switch( True() ,

[Varsion] , "10.0", date(2022,12,31),

[Varsion] , "11.0", date(2026,12,31),

// add others

 

date(2020,12,31)

)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Hi @amitchandak,

 

I was able to populate the End of Support Date with your help. I only needed to remove "true()" from your formula. Thanks for that.

End of Support Date = switch(
'OS Version Mapping'[OSversionCheck],
"10.0 (19042) Enterprise", date(2022,12,21),
"10.0 (18363) Enterprise", date(2021,12,21)
)
 
The first formula to summarize data and only keep the unique OSVersionCheck values didn't work. It was the same output I had with unique rows.
Rene_E_0-1640699844084.png

 

View solution in original post

4 REPLIES 4
Rene_E
Regular Visitor

I was not able to get unique OSVersionCheck values. So I ended up recreating the custom table "OS Version Mapping" with only DISTINCT OSVersionCheck values and then created both End of Support Date and operatingSystem as new column with manual data.

amitchandak
Super User
Super User

@Rene_E , Try like

OS Version Mapping =SUMMARIZE( FILTER('AD - combined','AD - combined', CONTAINSSTRING('AD - combined'[operatingSystem],"Windows") ), 'AD - combined'[OSversionCheck],'AD - combined'[operatingSystem])

 

 

You can add manual data in formula only , you have check for every row value and do that

example

New column  = Switch( True() ,

[Varsion] , "10.0", date(2022,12,31),

[Varsion] , "11.0", date(2026,12,31),

// add others

 

date(2020,12,31)

)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak,

 

I was able to populate the End of Support Date with your help. I only needed to remove "true()" from your formula. Thanks for that.

End of Support Date = switch(
'OS Version Mapping'[OSversionCheck],
"10.0 (19042) Enterprise", date(2022,12,21),
"10.0 (18363) Enterprise", date(2021,12,21)
)
 
The first formula to summarize data and only keep the unique OSVersionCheck values didn't work. It was the same output I had with unique rows.
Rene_E_0-1640699844084.png

 

@Rene_E , You can use addcolumns on same summarize script

 

or

create that var table and then use add the column.

 

You got what you want, of still there is some issue?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors