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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Fixed LOD

Hello,

 

Can anybody help me figure out why this formula gives inaccurate result? and how do i make it correct?

 

 

Fixed Item = CALCULATE(SUM(ASC[ItemAttributes_ITEMDIM.ITEM_COST]), ASC[ORGCODE] = "SGW")*(ASC[QUANTITY_RATE])
 

Laedays_0-1625749510908.png

 

7 REPLIES 7
smpa01
Community Champion
Community Champion

Please provide sample data  and what is your desired outcome in a table format


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================
Anonymous
Not applicable

I just need to get the right value, multiplying the ITEMCOST and QUANTITY_RATE

amitchandak
Super User
Super User

@Anonymous ,  Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. As most us not so familar Tableau .

 

Please try


Fixed Item = CALCULATE(SUMX(ASC,ASC[ItemAttributes_ITEMDIM.ITEM_COST]*ASC[QUANTITY_RATE]), ASC[ORGCODE] = "SGW")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak it's still not working and it's giving me same result from the formula i had first.

 

Laedays_0-1625751011049.png

 

@Anonymous , I think you need multiplication at some level say item

 

try like

 

Fixed Item = CALCULATE(sumx(values(ItemAttributes_ITEMDIM[ITEMDIM])calculate( SUM(ASC[ItemAttributes_ITEMDIM.ITEM_COST])*Sum(ASC[QUANTITY_RATE]))), ASC[ORGCODE] = "SGW")

 

Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Still won't work. I just need to multiply the ITEM COST by the Quantity for those item that are ORG = SGW...

Hi @Anonymous ,

 

No one could help you well without sample data and expected output. Is the ASC[QUANTITY_RATE] a measure or a column?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors