Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to mark a 1 in a new column IF the "user" has logged in 6 to 7 times (based on the Last Time Logged in Column) in the past 7 days from the "date of data" column (if not then 0). I also need to do this for 4 to 5 times logged in and 2 to 3 but if I get the 6-7 times then I can figure out the rest. I'm getting stuck on how to build the formula in DAX.
Solved! Go to Solution.
Hi, @dwel0120
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
All measures are in the sample pbix file, and you can follow the steps that are numbered in front of the measure name.
https://www.dropbox.com/s/0u8fmytn88xbpag/dwel.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Hi, @dwel0120
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
All measures are in the sample pbix file, and you can follow the steps that are numbered in front of the measure name.
https://www.dropbox.com/s/0u8fmytn88xbpag/dwel.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
@dwel0120 , try a new column like
if(countx(filter(table, [user] =earlier([user]) && [date of data] >=earlier([date of data]) -7 && [date of data] <= earlier([date of data])), user)+0>6,1,0)
@amitchandak That did not work. I still have 1s throughout the data and it is not limited to the past seven days from Date of Data.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |