Forum Discussion
Help with simple measure
I have data that shows Card Reads. I need to calculate the following and be able to use "State" as the legend
% = ([Unique card reads] / [Unique card reads in Jan. 2020]) * 100%
Basically divide every month's card reads by that value in Jan 2020, broken down by State. I tried hardcoding it and it still doesn't work but I"d like to not have it hard coded and have it in a measure.
4 Replies
- selimovdMost Valuable Professional
- AnonymousNot applicable
Hi bhmiller89 ,
= CALCULATE([Unique card reads] / [Unique card reads in Jan. 2020]) * 100%), ALLEXCEPT(table, table[state]))
Thanks
- FowmySuper User
bhmiller89
Try :
Hope you have a DATES table connect to the fact table:% = DIVIDE( [Unique card reads], CALCULATE( [Unique card reads], Date[Year] = 2020, Date[Month] = 1, ) ) - AnonymousNot applicable
Hi bhmiller89,
Did Fowmy 's suggestions help with your scenario? if that is the case, you can consider Kudo or accept his suggestion to help others who faced similar requirements to find it more quickly.
If these also not help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng