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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kghimire
New Member

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 @kghimire

 

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 @kghimire

 

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.

kghimire
New Member

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

 

amitchandak
Super User
Super User

@kghimire , 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"))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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