March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Experts
How would you amend the following measure to count the number of row (and ignore Max and maxx) in the current measure..
_m_get_last_result_count_1 =
// 1st step of 3-sum up counts of last assessed ctrl per org.
//Used in [_m_get_last_result_count_final]
VAR latest_assessed_on =
CALCULATE (
MAXX (
vw_fct_msi_icontrol_task_execution_assessments,
vw_fct_msi_icontrol_task_execution_assessments[assessed_on]
),
FILTER (
vw_fct_msi_icontrol_task_execution_assessments,
NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[assessed_on] )
&& NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[result_rating] )
)
)
VAR getRows =
CALCULATE (
COUNTROWS ( vw_fct_msi_icontrol_task_execution_assessments ),
FILTER (
vw_fct_msi_icontrol_task_execution_assessments,
NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[assessed_on] )
&& NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[result_rating] )
),
vw_fct_msi_icontrol_task_execution_assessments[assessed_on] = latest_assessed_on
)
VAR get_max =
MAXX ( vw_fct_msi_icontrol_task_execution_assessments, getRows )
RETURN
get_max
Solved! Go to Solution.
I don't understand really the context but here is a try :
_m_get_last_result_count_1 =
VAR getRows =
CALCULATE (
COUNTROWS ( vw_fct_msi_icontrol_task_execution_assessments ),
FILTER (
ALL(vw_fct_msi_icontrol_task_execution_assessments), // This will reset any filters on your table
NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[assessed_on] )
&& NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[result_rating] )
)
)
RETURN
getRows
I supposed that you need to eliminate all the filters. If possible share your dataset and tell us what you want to achieve.
I don't understand really the context but here is a try :
_m_get_last_result_count_1 =
VAR getRows =
CALCULATE (
COUNTROWS ( vw_fct_msi_icontrol_task_execution_assessments ),
FILTER (
ALL(vw_fct_msi_icontrol_task_execution_assessments), // This will reset any filters on your table
NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[assessed_on] )
&& NOT ISBLANK ( vw_fct_msi_icontrol_task_execution_assessments[result_rating] )
)
)
RETURN
getRows
I supposed that you need to eliminate all the filters. If possible share your dataset and tell us what you want to achieve.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |