We'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
I am using this Dax as a measure -
https://drive.google.com/file/d/1dGREcWSPPDGj8MBnQNAcqeKV_s1swcG5/view?usp=drivesdk - This one shows incorrect count when using the dax in calculated Column
Solved! Go to Solution.
The "Colleague Name" is from another column. However, I was able to resolve the issue by separating the filter.
IsDesiredCause =
'Colleague Events'[CAUSE2] IN {"didyoumeanAutomatic", "didyoumeanClick", "searchboxSubmit",
"searchboxAsYouType", "omniboxSearch", "omniboxAnalytics",
"omniboxFromLink", "omniboxField", "searchFromLink"}
Colleague Searches =
CALCULATE (
COUNT('Colleague Events'[SEARCH_ID]), ALLEXCEPT('Colleague Events', 'Colleague Events'[CAUSE2]), 'Colleague Events'[IsDesiredCause] = TRUE()
)
This gave the correct output
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!
Try this calculated column. The ALL calculate modifier is necessary to clear the filter context, and then apply the desired filter.
S =
CALCULATE (
COUNT ( 'Colleague Events'[SEARCH_ID] ),
ALL ( 'Colleague Events' ),
'Colleague Events'[CAUSE2]
IN {
"didyoumeanAutomatic",
"didyoumeanClick",
"searchboxSubmit",
"searchboxAsYouType",
"omniboxSearch",
"omniboxAnalytics",
"omniboxFromLink",
"omniboxField",
"searchFromLink"
}
)
Proud to be a Super User!
I tried unfortunately still getting the incorrect output
S =
CALCULATE (
COUNT ( 'Colleague Events'[SEARCH_ID] ),
FILTER (
'Colleague Events',
'Colleague Events'[Colleague Name]
= EARLIER ( 'Colleague Events'[Colleague Name] )
&& 'Colleague Events'[CAUSE2]
IN {
"didyoumeanAutomatic",
"didyoumeanClick",
"searchboxSubmit",
"searchboxAsYouType",
"omniboxSearch",
"omniboxAnalytics",
"omniboxFromLink",
"omniboxField",
"searchFromLink"
}
)
)
If the following information cannot meet your requirement, can you provide some sample output you want?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Also, please accept it as a solution for me.
The "Colleague Name" is from another column. However, I was able to resolve the issue by separating the filter.
IsDesiredCause =
'Colleague Events'[CAUSE2] IN {"didyoumeanAutomatic", "didyoumeanClick", "searchboxSubmit",
"searchboxAsYouType", "omniboxSearch", "omniboxAnalytics",
"omniboxFromLink", "omniboxField", "searchFromLink"}
Colleague Searches =
CALCULATE (
COUNT('Colleague Events'[SEARCH_ID]), ALLEXCEPT('Colleague Events', 'Colleague Events'[CAUSE2]), 'Colleague Events'[IsDesiredCause] = TRUE()
)
This gave the correct output
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!
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 |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |