The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Experts
I cannot work out why the following DAX is not work for my hierarchies - i am trying to count the distinct values in column "latest result rating" where Operating effectively is present.
as you can see for Spain ES Retail > STO 0012852 IKEA Madrid i should be see 37 as a count but the currentr measure is giving 5.
My Measure (Measurew Name _m_get_last_result)
VAR org = SELECTEDVALUE(vw_dim_msi_organization[level_5])
VAR ctrl= SELECTEDVALUE(vw_dim_msi_icontrol_controls[control_name])
VAR latest_assessed_on=MAXX(vw_fct_msi_icontrol_task_execution_assessments,vw_fct_msi_icontrol_task_execution_assessments[assessed_on])
RETURN
COUNTX( vw_fct_msi_icontrol_task_execution_assessments,CALCULATE(SELECTEDVALUE(vw_fct_msi_icontrol_task_execution_assessments[assessed_on]), vw_fct_msi_icontrol_task_execution_assessments[assessed_on] = latest_assessed_on)
Sample Data
Solved! Go to Solution.
There is a lot of stuff going on in your data model.
- Do not link fact tables directly
- avoid bidirectional links that point back into a dimension table.
Your sample file is too detailed - hard to find out what to look at. Try distilling it down to the issue you are facing, remove everything that is unrelated.
There is a lot of stuff going on in your data model.
- Do not link fact tables directly
- avoid bidirectional links that point back into a dimension table.
Your sample file is too detailed - hard to find out what to look at. Try distilling it down to the issue you are facing, remove everything that is unrelated.
User | Count |
---|---|
60 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
71 | |
48 | |
46 |