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
As you can see , the total is not adding up.
This is the model view
Risk is created from MAx_Risk_Rating
where there are multiple contradicting data but it is worked upon by custom SQL query which created HAZARD
Solved! Go to Solution.
Hi @Agent47
DISTINCTCOUNT is the hint. An Ra_Code could have more than one distinct risk values. At Risk level, there are 4, 49, 52, 4 and 21 distinct Ra_Code for each distinct Risk value. However, at Vessel_name level there are only 63 and not the sum of the indivdual breakdown
In the screenshot below, you can see there are only 3 distinct codes so these will be count for Level2
If you want your measure to evaluated for each distinct column values in your viz, use SUMX over a virtual/temporary table. Example:
SUMX (
ADDCOLUMNS (
SUMMARIZE ( 'data', 'data'[type], 'data'[name], 'data'[risk] ),
"@value", [Measure_RA_SUM]
),
[@value]
)
Hi @Agent47
DISTINCTCOUNT is the hint. An Ra_Code could have more than one distinct risk values. At Risk level, there are 4, 49, 52, 4 and 21 distinct Ra_Code for each distinct Risk value. However, at Vessel_name level there are only 63 and not the sum of the indivdual breakdown
In the screenshot below, you can see there are only 3 distinct codes so these will be count for Level2
If you want your measure to evaluated for each distinct column values in your viz, use SUMX over a virtual/temporary table. Example:
SUMX (
ADDCOLUMNS (
SUMMARIZE ( 'data', 'data'[type], 'data'[name], 'data'[risk] ),
"@value", [Measure_RA_SUM]
),
[@value]
)
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 |
|---|---|
| 55 | |
| 34 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 38 | |
| 35 | |
| 25 |