Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
KGBOR
Helper I
Helper I

Return measure value for a specific period

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!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

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.

View solution in original post

4 REPLIES 4
johnt75
Super User
Super User

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!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.