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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jmmariscal
Frequent Visitor

Decomposing a number

Hi,

 

I would like to decompose a number to get part of it using DAX. These are some examples of what I want to get:

 

Number: 42.330-->I want to get 330 (this is 42330-42000)

Number: 54320--> I want to get 320 (this is 54320-54000)

 

 

Any idea?

 

Thanks in advance

1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

Hi @jmmariscal 

You could use the MOD function.

MOD(Number, 1000)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jmmariscal ,

You can create a calculated column as below to get it:

Column = 'Table'[Number] - 1000 * LEFT ( DIVIDE ( 'Table'[Number], 1000, 0 ), 2 )

yingyinr_0-1646987240087.png

Best Regards

PaulOlding
Solution Sage
Solution Sage

Hi @jmmariscal 

You could use the MOD function.

MOD(Number, 1000)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.