Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I would like to display fraction in name card based on 2 calculated columns.
fraction=
Solved! Go to Solution.
Hi @elzahy ,
You can try the following dax:
Column =
var given= 'table'[R]
var precision='table'[T]
var value1=given*precision/GCD(given*precision,precision)
var value2=precision/GCD(given*precision,precision)
return
FORMAT(value1,"$#,##0") &"/"& value2
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @elzahy ,
You can try the following dax:
Column =
var given= 'table'[R]
var precision='table'[T]
var value1=given*precision/GCD(given*precision,precision)
var value2=precision/GCD(given*precision,precision)
return
FORMAT(value1,"$#,##0") &"/"& value2
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DAX is lousy at precision math.
Choosing Numeric Data Types in DAX - SQLBI
Understanding numeric data type conversions in DAX - SQLBI
Change your order of calculation.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |