Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
71 | |
68 | |
50 | |
30 |
User | Count |
---|---|
119 | |
101 | |
73 | |
65 | |
40 |