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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
vincentakatoh
Helper IV
Helper IV

Product and Average

Hi, 

 

Objective is to create below matrix in PBI. Need help with level 3 calculation.

 

Level 3, Avg Yield: Need help!

Level 2, Roll Yield: Achieve using New Table + Summarize column

Level 1, Yield: Achieve using measure

 

Fomula in Excel (Column J)

2017-11-02 16_57_16-Start.jpg

 

Sample Data (Actual data has >100k rows, multiple customers, families and stations)

CustomerFamilyStationPassCountTotalCount
ClassGroup1sub-grp11015
ClassGroup1sub-grp2512
ClassGroup2sub-grp3618
ClassGroup2sub-grp4713

Sample data

 

9 REPLIES 9
vik0810
Resolver V
Resolver V

Hi, I created a PBI file with your data and uploaded it here. The end result looks like this:

 

pbi.png

@vik0810

Did you upload the correct file? Downloaded the file but the Roll and Avg yield columns are missing. 

 

rgds, vincent

 

@vincentakatoh, you are right, sorry, i uploaded new file

hi @vik0810

Thanks. I really like your solution.

 

Nontheless, got below error msg when I put "PassCountM" and "TotalCountM" in a matrix using actual data. 

 

FirstPassQtyM = IF(HASONEVALUE(data2[Station]), VALUES(Data2[FirstPassQty]))
InputFrM = IF(HASONEVALUE(data2[Station]), VALUES(Data2[InputFr]))

 

Please help!

 

2017-11-04 21_57_50-Windows Shell Experience Host.jpg2017-11-04 22_01_48-Start.jpg

It looks like you have different FirstPassQty and InputFr values for the station. So the VALUES Function doesn't return single values.

I guess your measures should look like

 

FirstPassQtyM = SUM(Data2[FirstPassQty])

InputFrM = SUM(Data2[InputFr])

 

Hi @vik0810

 

Uploaded my sample dax. Can advise how to correct measure, "Error3_RollYield"

 

Objective is for "Error3_RollYield" = "RollYield_MyGoal". Tried all day w/o success. 

 

https://1drv.ms/u/s!ArjVwEnHONXNggEon7i3aTQQgX4-

Hi @vincentakatoh, the file isn't available. have you resolved your issue in the meantime? 

hi @vik0810

 

Thanks again. Yes, managed to resolved issue with help from this forum. 

 

Also all thanks to your reply and sample Pbi file. Help to solve other problems too. Thanks thanks. 

 

https://1drv.ms/u/s!ArjVwEnHONXNggfW2ETtdFOTf9Zx

Anonymous
Not applicable

Hi @vincentakatoh,

 

Have you tried to use "Quick Measures" here you could for example make a measure where you simply click on multiplication and select the columns you want to calculate. After that you can calculate an average by using the AVERAGE function. or you can create it through a "Quick Measure" again.

 

I was'nt entirely sure what you wanted to achieve so if I answered the wrong question please let me know 🙂

 

Regards,

L.Meijdam

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.