Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a number field with different data:
1.00
1.14
2.00
1.01
I want to write a formula that states if the number ends with .00 then "Parent", if not then "Child"
My formula below is only returning child. I am guessing it does not like the ".00" with the numbers above.
Parent = IF(RIGHT('DataReader vSalesMaster'[SalesOrderLine], 3)=".00",
"Parent", "Child")
Solved! Go to Solution.
Hi,
Try this calculated column formula
=IF(MOD('DataReader vSalesMaster'[SalesOrderLine],1)=0,"Parent", "Child")
Hi @Anonymous,
By my tests, it seems that the replies from @Ashish_Mathur and @OwenAuger should be right.
If you have solved your problem by the replies, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Both solutions work great! Thank you so much!
You are welcome.
Hi,
Try this calculated column formula
=IF(MOD('DataReader vSalesMaster'[SalesOrderLine],1)=0,"Parent", "Child")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |