The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
is there a way to show the latest list of purchase based on the same invoice in the 1st table
thanks.
Solved! Go to Solution.
@Easley08 Create a new table that groups the data by Invoice No and shows the latest purchase date for each invoice.
LatestPurchases =
SUMMARIZE(
'YourTableName',
'YourTableName'[Invoice No],
"Latest Purchase Date", MAX('YourTableName'[Purchase Date])
)
Join this new table with your original table on Invoice No and Purchase Date to get the latest purchases.
LatestPurchasesDetails =
FILTER(
'YourTableName',
'YourTableName'[Purchase Date] = RELATED(LatestPurchases[Latest Purchase Date]) &&
'YourTableName'[Invoice No] = RELATED(LatestPurchases[Invoice No])
)
Finally, use the LatestPurchasesDetails table to create your visual in Power BI. This will show the latest list of products for each invoice.
Proud to be a Super User! |
|
Hi @Easley08 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Easley08 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Easley08 ,
Thank you for reaching out to the Microsoft Fabric Community.
I wanted to check if you had the opportunity to review the information provided by @bhanu_gautam . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
@Easley08 Create a new table that groups the data by Invoice No and shows the latest purchase date for each invoice.
LatestPurchases =
SUMMARIZE(
'YourTableName',
'YourTableName'[Invoice No],
"Latest Purchase Date", MAX('YourTableName'[Purchase Date])
)
Join this new table with your original table on Invoice No and Purchase Date to get the latest purchases.
LatestPurchasesDetails =
FILTER(
'YourTableName',
'YourTableName'[Purchase Date] = RELATED(LatestPurchases[Latest Purchase Date]) &&
'YourTableName'[Invoice No] = RELATED(LatestPurchases[Invoice No])
)
Finally, use the LatestPurchasesDetails table to create your visual in Power BI. This will show the latest list of products for each invoice.
Proud to be a Super User! |
|
User | Count |
---|---|
12 | |
9 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
14 | |
9 | |
7 |