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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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