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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
hb
Frequent Visitor

DAX product function

Hi everyone,

 

I am struggling DAX PRODUCTX funcction in power bi to have a result same like PRODUCT function in EXCEL.

But unfortunatly didn't get the expected result as showed in excel.

 

EXCEL

hb_0-1685866328277.png          

 

POWER BI

hb_1-1685866623223.png

 

appreciate any help.

 

Thanks 

 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@hb 

Please try this measure. based on your example, the following solution would work but I am not sure about what kind of actual or production data you will be implemeting on. This give an idea 🙂

PROD3 = 

CALCULATE(
   PRODUCTX( 'Table' , 'Table'[Column2] ),
    WINDOW(
        0,
        REL,
        -1,ABS,
        SUMMARIZE( ALLSELECTED('Table') , 'Table'[Column1]),
        ORDERBY( 'Table'[Column1] )
    )
)    

 

Fowmy_0-1685882147146.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
hb
Frequent Visitor

You are great man.

 

Thanks for your solution, but when i am aplying it on my project its not working as expected.

 

i have the matrix visual with heirarchical data [Channel] & [Due Group] as

 

hb_0-1685885434123.png

 

and apply the formula like 

hb_1-1685885507821.png

 

but not geeting the result.

 

any idea in this context ?

 

Thanks

 

 

 

@hb 

If you could replicate a PBIX file with some dummy data and show the same scenario and share the file then I should be able to see the issue.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hello Fowmy,

Can you kindly share the BI datafile for the AR dashboard, I would like to use it for learning purposes. My email address is RichardThomasG@proton.me.

 

Thank you so much.

 

Fowmy
Super User
Super User

@hb 

Please try this measure. based on your example, the following solution would work but I am not sure about what kind of actual or production data you will be implemeting on. This give an idea 🙂

PROD3 = 

CALCULATE(
   PRODUCTX( 'Table' , 'Table'[Column2] ),
    WINDOW(
        0,
        REL,
        -1,ABS,
        SUMMARIZE( ALLSELECTED('Table') , 'Table'[Column1]),
        ORDERBY( 'Table'[Column1] )
    )
)    

 

Fowmy_0-1685882147146.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors