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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Monthly Restriction

Hi Community,

 

I am pretty new to dax and your help will be appreciated.

 

I have created some power bi repots. now if a customer is monthly customer he can see the data only on the last day of month. for example if a customer is monthly customer when he logged in 1st of march he can able to see only until febrauary data not for march 1st. if he logged in 10th of march also he can able to see only until febrauary data.

 

I have no clue how to do it. 

 

thanks in advance!

 

Thanks,

Paruchuri

 

5 REPLIES 5
Anonymous
Not applicable

@Anonymous,

What data would the user view if he logs in the date that is greater than 10th of March? In Power BI, you can compare today with the date you want and then display relevant data.

Please share dummy data of your table and post expected result here.


Regards,
Lydia

Anonymous
Not applicable

Hi Lydia,

 

Thanks for your reply. 

If i don't have montly restriction, If the user logs in he can view entire data until today but i want to restrict him to see only till last day of previous month.

 

Thanks,

Paruchuri.

Anonymous
Not applicable

@Anonymous,

Do you have other policies for other users? Or do you create the report for this specific user?

If the report is used by different user, you need to define Row Level security. If you create the report for the specific user, you can create measure.

Regards,
Lydia

Anonymous
Not applicable

Yes, I have created Dynamic Row Level Security. 

Anonymous
Not applicable

@Anonymous,

What is the problem do you get currently? You can create a measure using username() function to check if it returns specific user.

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.