Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am looking to create a data model where there will be sales for past 5 years of various 5 comapnies that will contain some users of each, and will be creating a stacked bargraph that will contain sales of a specific user with stacked bar graph that will contain aggregated sales of each company on each year. So if user a logins he would see his company sales with comparison to aggregated sales of all the companies of each year, how something like this can be achived.
Hi @Anmolgan,
There could be two approaches.
1. Create a measure like this. You can add more conditions for other users.
PerUser =
IF (
USERPRINCIPALNAME () = "user0@email.com",
[Company 1],
IF ( USERPRINCIPALNAME () = "user1@email.com", [Company 2], 0 )
)2. Using RLS. Please refer to power-bi/service-admin-rls and power-bi/desktop-rls.
Best Regards,
Dale
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!