Im trying to calculate the percentage of True values by sync date so for this day there are 800 records and i need to know the percentage of True values of the Shortage field.
whats the best way to do this?
One possible way to accomplish this could be to:
- Add a transform if-then column to designate True = 1 and False = 0 as [short_count]
- Add another transform column with simply ‘1’ as [line_count]
- Add both columns to the Measures.
- Create a Custom Measure to divide the two values and multiply by 100:
([short_count / [line_count]) * 100 - Change the new measure’s format to a percentage.
2 Likes
Thank you, that worked.