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
TcT85
Helper III
Helper III

Need help to calculate the surivial yield of fishes shipped out from 2 tables and 2 columns

Hi,

 

I'm trying to calculate the yield of our shipped orders to the customer and also count the yield of shipped fishes based on survival of the fishes We are sending out package deals of fishes and we have 2 package deals.

 

I have created a relation ship between these 2 tables with the colum package.

 

And I have manage to calculate the yield for each fish Package, but when I try to calculate the yield of fish Type i can't get the calculation correct.

 

Could someone please help and advise on how I should calculate the yield for each fish type?

 

 

TcT85_0-1695976531462.png

TcT85_1-1695976604405.png

 

PackageTypeAmount
Fish 1Guppy10
Fish 1Betta2
Fish 1Goldfish1
Fish 1Angelfish10
Fish 2Guppy4
Fish 2Zebrafish4
Fish 2Tetra4

 

PackageOrder SerialnumberTypeAmountFatality
Fish 1100001Guppy1Died during transport
Fish 1100001Guppy1Died after transport
Fish 1100001Betta1Died during transport
Fish1100002  None
Fish1100003  None
Fish1100004  None
Fish1100005  None
Fish 1100006Guppy1Died after transport
Fish 1100006Angel fish1Died after transport
Fish 2200001Guppy1Died during transport
Fish 2200001Zebrafish1Died after transport
Fish 2200002Guppy1Died during transport
3 REPLIES 3
lbendlin
Super User
Super User

I would change your data and data model slightly.

 

lbendlin_0-1696091160024.png

Then I would use TREATAS to project filters across the missing links.

 

lbendlin_1-1696091246715.png

 

From there you can modify as needed if you want other totals.

 

 

Hi @lbendlin 

 

Never thought the Matrix could be used in this way, learned something new here.

But unfortuneatly it's not what I'am looking for.

 

I would like to count the total deaths for each fishtype and total fishtype shipped and divide the death with total shipped for each fish type.

Rearrange the matrix accordingly.

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.