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.
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
Solved! Go to Solution.
Hi @jmmariscal ,
You can create a calculated column as below to get it:
Column = 'Table'[Number] - 1000 * LEFT ( DIVIDE ( 'Table'[Number], 1000, 0 ), 2 )
Best Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
50 | |
47 | |
16 | |
13 |