Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I need to apologize for such elementary question (I've just started using Power BI) but I'm struggling with the following. I have a column in my dataset which can take up a the value of 0 or 1. For this I created a measure which divides the total count of rows with the sum of 1s. So basically if I have 10 rows with 5 having the value of 1, then it gives 50%. Now my problem is, I cannot figure it out how to display this measure only for a specific timeframe, specifically for the current week, current month, last week and last month. I need to display these values on a card visuals.
Thank you for your help!
Solved! Go to Solution.
Make sure that you have a date table linked to your fact table, then on your card visuals you can add 'Date'[Date] to the visual filter and use relative date, e.g. is in this calendar month.
Make sure that you have a date table linked to your fact table, then on your card visuals you can add 'Date'[Date] to the visual filter and use relative date, e.g. is in this calendar month.
Thank you very much! If I'd need to have that value as well as a measure, is there any easy was to have that calculated, let's say for the previous month?
Thanks again for the help!
I'm afraid I don't understand. Which value do you mean?
My bad, I formulated it incorrectly, in the meantime I figured it out. 🙂
Thanks again for the help!
User | Count |
---|---|
101 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
98 | |
97 | |
73 | |
72 |