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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PowerBIOrg
Resolver II
Resolver II

Dot Net Core Mobile Layout Not Working

Hi All,

 

I have my reports with mobile layout. 

I'm working on Power BI Embedded on App Owns Data with Dot Net Core (.Net Core).  

I get the sample code from here. I input all the config items in the appsetting.json. 

 

I followed the this link by adding the following code in the config - setting nest. 

layoutType: models.LayoutType.MobilePortrait

 It's not showing the mobile layout instead it show web layout.

 

Can anyone tell what else need to add on?

 

Thanks.

1 ACCEPTED SOLUTION
PowerBIOrg
Resolver II
Resolver II

Hi All, 

I got the solution here. You can refer to answer (especially item 3 and 4) from the post. After I changed the code, it works for me. 

View solution in original post

3 REPLIES 3
PowerBIOrg
Resolver II
Resolver II

Hi All, 

I got the solution here. You can refer to answer (especially item 3 and 4) from the post. After I changed the code, it works for me. 

V-lianl-msft
Community Support
Community Support

Hi @PowerBIOrg ,

 

Try using latest powerbi-desktop to create report.

Check this sample solution from Microsoft itself, configure it and run with this property, it will work.

So, I would suggest you to update your pbi-desktop.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @V-lianl-msft ,

My power bi desktop is the latest version. Can you share the sample solution link?

 

Thanks!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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