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
sph1nkz
Frequent Visitor

How to get summarize results that contains a value?

This is the sample scenario and results

sph1nkz_0-1675158318315.png

 

2 REPLIES 2
SamInogic
Super User
Super User

Hi @sph1nkz,

 

As per our understand you need to check if service type is MPLS, Radio, VSAT then Backup Status is equal to "Has Backup" And if service type is MPLS, but no Radio, VSAT then backup status is equal to "No Backup".

 

Create new Column with below DAX expression as shown in below,

Backup Status = IF('Table'[type]

IN {"MPLS","Radio","VSAT"} && 'Table'[Site Name]

in {"Site A Farm"},"has Backup","No Backup")

SamInogic_1-1675160690580.png


Below is the result :

SamInogic_0-1675160662869.png


If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

rusgesig
Helper IV
Helper IV

You need to group your row level (Site A/B) then return one value per row stating whether there is a backup or not. Your desired output table is inconsistent, as in that case MPL5 = both Backup and No Backup.
There are many ways to do it. You can group the Site Name column in query editor, choose SUM as the group function for your service type - it will return an error. 

rusgesig_0-1675160325662.png

rusgesig_1-1675160345585.png

In the formula bar, change 'sum' to 'Text.Combine' and add the seperator

rusgesig_2-1675160411327.png

Add a custom column with the following:

if Text.Contains([Count], "Radio") or Text.Contains([Count],"VSAT") then "Has Backup" else "No Backup")

rusgesig_3-1675160662973.png

this is your result, you can join new the table on the Site Name if you want.

 

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.