Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, is there any way to Round down the second part of this ratio Calc
Solved! Go to Solution.
Use ROUNDDOWN, for example to 2 decimal places
RETURN
CONCATENATE ( "1", CONCATENATE ( " : ", ROUNDDOWN(Ratio, 2) ) )
https://learn.microsoft.com/en-us/dax/rounddown-function-dax
Regards
Phil
Proud to be a Super User!
Hi @NewbieJono
Thanks for the reply from PhilipTreacy .
You can also try using ROUND. The following test is for your reference:
Sample:
Create a measure as follows
Radio =
VAR _radio = SUM('FACT - Volumes'[Volume])
RETURN
CONCATENATE("1", CONCATENATE(":", ROUND(_radio, 10)))
In your scenario you can directly change the formula:
Ratio =
VAR RATIO =
DIVIDE (
SUM ( 'FACT - Data'[final_unique_count] ),
SUM ( 'FACT - Volumes'[Volume] )
)
RETURN
CONCATENATE ( "1", CONCATENATE ( " : ", ROUND(RATIO, "Specify the number of digits to round off") ) )
Output:
For more details about the ROUND function, you can read related document link:
ROUND function (DAX) - DAX | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NewbieJono
Thanks for the reply from PhilipTreacy .
You can also try using ROUND. The following test is for your reference:
Sample:
Create a measure as follows
Radio =
VAR _radio = SUM('FACT - Volumes'[Volume])
RETURN
CONCATENATE("1", CONCATENATE(":", ROUND(_radio, 10)))
In your scenario you can directly change the formula:
Ratio =
VAR RATIO =
DIVIDE (
SUM ( 'FACT - Data'[final_unique_count] ),
SUM ( 'FACT - Volumes'[Volume] )
)
RETURN
CONCATENATE ( "1", CONCATENATE ( " : ", ROUND(RATIO, "Specify the number of digits to round off") ) )
Output:
For more details about the ROUND function, you can read related document link:
ROUND function (DAX) - DAX | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use ROUNDDOWN, for example to 2 decimal places
RETURN
CONCATENATE ( "1", CONCATENATE ( " : ", ROUNDDOWN(Ratio, 2) ) )
https://learn.microsoft.com/en-us/dax/rounddown-function-dax
Regards
Phil
Proud to be a Super User!
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 |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |