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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Create Power Bi report from 2 SharePoint List

I have 2 list on SPO 

Invoice with following field
Invoice Number : - Number
Payment : Amount

Status : Approved / Not Approved 

 

Break Down 

Invoice number : lookup from Invoice

and other columns 

I need to generate reports based on Invoice number from Invoice list equal to Break down invoice number and Status is Approved . 

I am completly new in Powe rbi so if anyone can help me how to 

 

 

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @Anonymous

 

Based on your description, I created these data and established a one-to-one relationship for them.

vkaiyuemsft_0-1711440440106.png

vkaiyuemsft_1-1711440440107.png

You can create measures and write expressions.

Measure =
CALCULATE(MAX('Invoice'[Invoice Number]),'Invoice'[Invoice Number] IN VALUES('Table'[Invoice number]) && 'Invoice'[Status ] = "Approved")

 

vkaiyuemsft_2-1711440488776.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

View solution in original post

3 REPLIES 3
v-kaiyue-msft
Community Support
Community Support

Hi @Anonymous

 

Based on your description, I created these data and established a one-to-one relationship for them.

vkaiyuemsft_0-1711440440106.png

vkaiyuemsft_1-1711440440107.png

You can create measures and write expressions.

Measure =
CALCULATE(MAX('Invoice'[Invoice Number]),'Invoice'[Invoice Number] IN VALUES('Table'[Invoice number]) && 'Invoice'[Status ] = "Approved")

 

vkaiyuemsft_2-1711440488776.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Anonymous
Not applicable

Will this get all the column with same invoice id on both list with Status = approved

 

amitchandak
Super User
Super User

@Anonymous , You can join both tables on the Invoice number and then use status as filter/slicer

 

or can have a measure like

calculate(Sum(Table2[Value]), filter(Table1, Table1[Status] = "Approved"))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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