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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Abishek
Helper I
Helper I

Paginated Report - Line chart not plotting correctly when I use LookupSet().

Hi,


I'm using LookupSet in a Paginated report.
This works well in a table when I use the Join() function with LookupSet().
However, when I try to plot a line chart, the visual is not displaying correctly. Can someone please help?


Category Group: Join(LookupSet(Fields!ID.Value, Fields!ID.Value, Fields!Date.Value, "Scores"),",")
Value: Join(LookupSet(Fields!ID.Value, Fields!ID.Value, Fields!SCORE.Value, "Scores"),",")


Thank you.

2 REPLIES 2
divyed
Super User
Super User

Hello @Abishek ,

 

Please provide more details along with sample data (without sensitive). 

Using LookupSet with JOIN is great for a table, but a line chart expects separate values rather than a single, comma-separated string. Here are a few steps you can try to display your data properly in the line chart:

 

  1. Separate Aggregation Logic: Create a dataset that fetches the individual values directly rather than aggregating them with LookupSet. This will let you use the fields as separate data points on the chart without joining them into strings.

  2. Chart Data Properties: Set the Categoty Group and Value fields directly from the dataset you created (or the one that holds the date and score values). This way, each ID or date has its own data point on the line chart.

I hope this helps. 

 

Cheers

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/

Hi @divyed ,
Thanks for replying,

1.this is the main table:

IDNameSubject
1Student AMath
1Student AScience
1Student AEnglish
2Student BMath
2Student BScience
2Student BEnglish

 

2.the Scores Table

IDDateScore
12024-01-0195
12024-01-0290
12024-01-0388
22024-01-0187
22024-01-0295
22024-01-0398

 

For example: This is the table. I'm developing a report for a student-wise report, with one student per page. I want to plot the score table data as a line chart using LookupSet().


Note: I have one main table, and the page break is between each instance of the group. This line chart comes inside the table

Thank You !

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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