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
achanikya
Helper I
Helper I

Measure Calculations decimal point

Hi team,

 

Here I am trying to calculate the measure value TCS_AMT. The following is the query that we have used in DB.

 Sum((
(Nvl(Nvl(T502.C502_Ext_Item_Price,T502.C502_Item_Price),0) * Nvl(T502.C502_Item_Qty,0))+
((Nvl(Nvl(T502.C502_Ext_Item_Price,T502.C502_Item_Price),0) * Nvl(T502.C502_Item_Qty,0))* Nvl(T502.C502_Igst_Rate,0)/100) +
((Nvl(Nvl(T502.C502_Ext_Item_Price,T502.C502_Item_Price),0) * Nvl(T502.C502_Item_Qty,0))* Nvl(T502.C502_Cgst_Rate,0)/100) +
((NVL(NVL(t502.c502_ext_item_price,t502.c502_item_price),0) * NVL(t502.c502_item_qty,0))* NVL(t502.c502_sgst_rate,0)/100)) * Nvl(T502.C502_Tcs_Rate,0)/100) As TCS_AMT

The calculation that I used in power BI Desktop was

achanikya_1-1667500136956.png

achanikya_2-1667500674267.png

achanikya_3-1667500825164.pngachanikya_4-1667500889783.png

Created all the measures for IGST,GST,CGST .We are expecting the value for the TCS_AMT ="5015.775" and we are not supposed to use 1000 divider for the above formula.Could anyone of you please let me know the solution for this.

 

 

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @achanikya 

Thanks for reaching out to us.

you can try something like this  powerbi - How to conditionally display decimals in a measure in Power BI - Stack Overflow

FORMAT([SimpleMeasure], "#,##0")

or select that measure and 

vxiaotang_0-1667552755910.png

 

 

Best Regards,

Community Support Team _Tang

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

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.

Top Solution Authors