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.
For this report I have a filter to show me just closed tickets and I want to do a % of the types of closure reasons from the total number of the closed tickets. So I would expect to see 83% resolved, 16% Declined and 1% Declined - Too Old to Fix. Keeping in mind that we may add more closure reasons down the line.
In my current report I added the measure:
After adding the new column to the report I receive this error:
I created test data which I will attach. In this case the measure does work without erroring but the %'s are wrong.
Hi @AmberJane ,
According to your description, I did a test reference as follows:
M_count =
VAR sum_ =
CALCULATE (
SUM ( 'Table'[Col] ),
FILTER ( ALL ( 'Table' ), 'Table'[State] = SELECTEDVALUE ( 'Table'[State] ) )
)
VAR count_ =
CALCULATE ( SUM ( 'Table'[Col] ), ALLEXCEPT ( 'Table', 'Table'[Reason] ) )
RETURN
count_ / sum_
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am getting an error that .pbix is not supported when attempting to attach the test data.
User | Count |
---|---|
69 | |
64 | |
62 | |
54 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |