Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys,
I've created a measure in order to intersect columns of a PowerBI report of which I cannot use Powerquery due to orginasational restrictions.
In this measure the Main Event is displayed with the adhering Findings.
Measure:
Result
Which looks like this:
The office audits column above displays the Event and the column 'Findings' is displaying the number of findings that came out of the Audit. This number can be eg 15, 3, 0 etc.
Now what I want to achieve is to display how many Events of the selected period have a Finding (any Finding so doesn't matter the number of Findings). And also how many Events have no Finding at all.
I tried to calculate it numorous times for example with COUNTX in the below measure:
Total Office events with findings = COUNTX('QHSE Event Fact Current',[Event_findings_#])
But that did not provide the right result, it's missing some data highlighted in yellow:
The measure to count the blanks I'm completely lost. I tried several times with COUNTBLANK however it needs to connect to the measure 'Event_findings_#' and that is something I did not achieve yet.
I think I need to create a measure just like 'Event_findings_#' to display the correct result but for now I did not succeed yet.
Hope someone could help me solve it!
Hi @Anonymous
You can try this Measure.
Total Office events with findings =
VAR filtered =
FILTER ( 'QHSE Event Fact Current', NOT ( ISBLANK ( [Findings] ) ) )
RETURN
COUNTROWS ( filtered )
If it doesn't work, please let me known and please provide some sample data without sensitive data in the form of table.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |