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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anmolgan
Post Prodigy
Post Prodigy

Powerbi Stacked Bargraph modeling

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.

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

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

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors