Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ruma_barman
Creator
Creator

Calculate duplicate values on the basis of dimension values

Hello All,

I want to calculate each server occurance from the below field,this can be duplicated as well,Check the output

Load * Inline

[
Servers                                                 ,Count

LinuxServer;NetworkDevices                 ,2
NetworkDevices;Other                           ,4
StorageDevices;WindowsServer;Other ,5
WindowsServer                                      ,6
Other                                                      ,10
];

 

Expected:

Servers Count
Linux Server 2
Network Devices 6
Storage Devices 5
Windows Server 11
Other 19

 

Thanks in advance,

Ruma

Labels (5)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

@ruma_barman Perhaps this?

QC_M246141:
Load SubField(Servers, ';') as Servers, Count Inline

[
Servers ,Count

LinuxServer;NetworkDevices ,2
NetworkDevices;Other ,4
StorageDevices;WindowsServer;Other ,5
WindowsServer ,6
Other ,10
];

Final:
NoConcatenate
Load Servers, Sum(Count) as Count Resident QC_M246141 Group By Servers;

Drop Table QC_M246141;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Chanty4u
MVP
MVP

Use this calculated dimension

=SubField(Servers, ';', IterNo())

 

Anil_Babu_Samineni

@ruma_barman Perhaps this?

QC_M246141:
Load SubField(Servers, ';') as Servers, Count Inline

[
Servers ,Count

LinuxServer;NetworkDevices ,2
NetworkDevices;Other ,4
StorageDevices;WindowsServer;Other ,5
WindowsServer ,6
Other ,10
];

Final:
NoConcatenate
Load Servers, Sum(Count) as Count Resident QC_M246141 Group By Servers;

Drop Table QC_M246141;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful