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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Bruce_Fei
Regular Visitor

how to get multi result

Hi

I have data source like below:

Data sourceData source

I load to powerBi and create four new measures:

Total_AssQty = Sum(AssQty)

Total_FailQty = Sum(FailQty)

FPY = 1-Divide(Total_FailQty,Total_AssQty)

RTY = Productx(tablename,FPY)

I get the FPY result and RTY result are below:

d2.JPG

the RTY logic is, for example P1's RTY = 1*0.944*1*0.95*0.95*1(FPY of XTA-Ass*FPY of XTA-Co*FPY of XTA-NV*FPY of XTA-OF*FPY of XTA-T*FPY of XTA-VR);

but with the RTY measure i get the wrong result, how could i get my expected result?

 

thanks.

 

1 ACCEPTED SOLUTION

Hi @Bruce_Fei 

 

Try this measure

 

 

RTY =
PRODUCTX (
    FILTER (
        ALL (
            tablename[Product],
            tablename[Workstation]
        ),
        tablename[Product]
            = MAX ( 'tablename'[Product] )
    ),
    ROUND (
        [FPY],
        2
    )
)

 

 

 

 

1.jpg

 

Regards,

Harsh Nathani

 

View solution in original post

8 REPLIES 8
harshnathani
Community Champion
Community Champion

Hi @Bruce_Fei ,

 

You measure should be working.

 

Try this

 

RTY =
PRODUCTX (
    VALUES(tablename[Product]),
    FPY
)

 

 

Regards,
Harsh Nathani

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

 

 

 

Hi @harshnathani 

 

i get the message: Too many arguments were passed to the VALUES function. The maximum argument count for the function is 1.

this measures can't be used.

 

thanks.

HI @Bruce_Fei 

 

RTY =
PRODUCTX (
    VALUES(tablename[Product]),
    FPY
)

 

tablename = Name of your Table

Product = Column in the table Table tablename

FPY = Measure which was created.

 

 Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Hi, @harshnathani 

 

I copy your formula format, then it works. my formula format is RTY = Productx(Values(tablename[Product],FPY))

why should that format?

 

and the RTY reslut still not correct, now the RTY for P1 is 0.98, the correct result should be 0.85.

i checked, 1-Total_FailQty/Total_AssQty is 0.98 for P1. 

D3.JPG

thanks.

Hi @Bruce_Fei ,

 

pls share sample data in text format.

Upload it on Onedrive or GDrive and share.

 

Regards,

Harsh Nathani

ProductWorkstationAssQtyFailQtyDate
P1XTA-Ass7 2020-06-16
P1XTA-Co6 2020-06-16
P1XTA-OF612020-06-16
P1XTA-T7 2020-06-16
P1XTA-NV7 2020-06-16
P1XTA-Ass8 2020-06-17
P1XTA-OF8 2020-06-17
P1XTA-Co6 2020-06-17
P1XTA-T712020-06-17
P1XTA-VR  7 2020-06-17
P1XTA-Ass9 2020-06-18
P1XTA-NV7 2020-06-17
P1XTA-OF8 2020-06-18
P1XTA-Co612020-06-18
P1XTA-T7 2020-06-18
P1XTA-VR  7 2020-06-18
P1XTA-NV7 2020-06-18
P2XTA-Ass16 2020-06-16
P2XTA-OF15 2020-06-16
P2XTA-T2082020-06-16
P2XTA-VR  12 2020-06-16
P2XTA-VR  7 2020-06-17
P2XTA-T1652020-06-17
P2XTA-Ass10 2020-06-17
P2XTA-OF9 2020-06-17
P2XTA-Ass19 2020-06-19
P2XTA-OF15 2020-06-19
P2XTA-T1272020-06-19
P2XTA-VR  4 2020-06-19
P2XTA-Ass2 2020-06-18
P2XTA-OF1 2020-06-18
P2XTA-VR  12 2020-06-18
P2XTA-T1222020-06-18

 

Hi @Bruce_Fei 

 

Try this measure

 

 

RTY =
PRODUCTX (
    FILTER (
        ALL (
            tablename[Product],
            tablename[Workstation]
        ),
        tablename[Product]
            = MAX ( 'tablename'[Product] )
    ),
    ROUND (
        [FPY],
        2
    )
)

 

 

 

 

1.jpg

 

Regards,

Harsh Nathani

 

Hi, @harshnathani  

thanks for your help. i get the expected result.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors