Forum Discussion
DAX Calc.
- 4 years ago
Hi,
According to your description, I can roughly understand your requirement, I think you can try to achieve this by creating 3 measures for the columns E, H, and I:
Column E = var _D43=SUMX(ALL('Table'),'Table'[D]) var _C43=SUMX(ALL('Table'),'Table'[C]) return IF(_D43<=0,"N/A",DIVIDE(_C43,_D43))Column H = var _F43=SUMX(ALL('Table'),'Table'[F]) var _G43=SUMX(ALL('Table'),'Table'[G]) return _F43+_G43Column I = var _H43=SUMX(ALL('Table'),'Table'[D]) var _D43=SUMX(ALL('Table'),'Table'[C]) return IF(_H43>0,"N/A",DIVIDE(_H43,_D43))And you can create a table chart to place the measures to get what you want, like this:
You can download my test pbix file below
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi sdhn
Can you post sample data as text and expected output?
Not enough information to go on;
please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables
Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/