The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Solved! Go to Solution.
instead of IFERROR use DIVIDE - it handles these scenarios gracefully.
Yes i figured it on my own as well after only an hour after posting the problem. Divide works great for this problem.
Hi @Anonymous ,
Plesae try this measure.
Total_Rev2 =
(
(
SUM ( '1.Orders (fact)'[CHARGES] ) + SUM ( '1.Orders (fact)'[XCHARGES] )
- SUM ( '1.Orders (fact)'[FSC_CHARGES] )
)
* IF (
AND (
SUM ( '1.Orders (fact)'[FUNCTIONAL_AMT] ) = 0,
SUM ( '1.Orders (fact)'[TOTAL_CHARGES] ) = 0
),
0,
DIVIDE (
SUM ( '1.Orders (fact)'[FUNCTIONAL_AMT] ),
SUM ( '1.Orders (fact)'[TOTAL_CHARGES] )
)
)
+ ( SUM ( '1 Order Interliner'[AMOUNT] ) )
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
instead of IFERROR use DIVIDE - it handles these scenarios gracefully.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |