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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dgadzinski
Helper I
Helper I

How many products have already been delivered by the group?

I have 2 source. The first source is Share Point and the second 4 files deliverd by Product Owners in one Table. The Excel files are provided throught Product Owners and I have to check if I received the data from the Product Owner in a month. If is in Sharepoint status "implemented" then I have to see in the excel file if it was actually delivered. 

In this case I used this measure and it is working: 

received product = 

var _version = MAX('SHP Data' [Product_Name])

var _product = SELECTCOLUMNS(FILTER('SHP Data', 'SHP Data'[Status] = "Implemented"), "_product", 'SHP Data'[Product_Name])

var _product2 = SELECTCOLUMNS(FILTER(ALL('Excel file'), ('Excel File'[Product_Name] = _version, "_product", 'Excel File'[Product_Name]

RETURN 

COUNTROWS(INTERSECT(_product, _product2))

 
Sample data and columns below:

  • SharePoint:
Product_NameGroupVersionTechnologyStatus
P1Gr 101.01T1Implemented
P2Gr 101.28T2Planned
P3Gr 201.05T3Planned
P4Gr 201.12T4Implemented
P5Gr 31.0T5Implemented
P6Gr 33.1T6Implemented
P7Gr 33.07T7Decommissioned 
P8Gr 45.04T8Decommisioned
P9Gr 401.02T9Implemented
P10Gr 402.24T10Planned
P11Gr 402.10T11Planned
P12Gr 51.02T12Implemented

 

Excel File: 

Product_NameGroupVersionTechnology
P1Gr 101.01T1
P2Gr 101.28T2
P4Gr 201.12T4
P7Gr 33.07T7

 

Now I need to calculate:

How many products have already been delivered by the group?

The results must be expressed as a percentage.

I tried with this measure but it display incorrect value: 

Have been delivered = var _count = CALCULATE(COUNT('SHP Data'[Product_Name]),ALLEXCEPT('SHP Data','SHP Data'[Group])) var _delivered = CALCULATE(COUNT('SHP Data'[Product_Name]),FILTER('SHP Data','SHP Data'[received product] = 1 ))
return DIVIDE(_delivered,_count)

 

Could you help me with calculation, please? 

1 REPLY 1
VijayP
Super User
Super User

@dgadzinski 

 

I tried solving this in power query 

I hv merged both tables based on product name  and this the screen shot of status = delivered

VijayP_0-1670221452045.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.