Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
i m looking for solution for Power Query:
1. Lookup Value - Same Table or Different Table
I have a formaula, but i get information back, - Circle reference
Idea behind this is DAX = LOOKUPVALUE('Sales Account'[ID2],'Sales Account'[accountid],'Sales Account'[id])
____
(let
searchValue = [id]
in
Table.SelectRows(
#"Sales Account",
[accountid]=searchValue)
){0}[ID2]
2. Countif (without merging Tables)?
var sItem= Table1[Item]
var sVisit= Table1[Visit]
CALCULATE(COUNT(Table1[Item]),FILTER(Table1,Table1[Item.]=sItem),FILTER(Table1,Table1[Visit]=sVisit))
3. IF MAXX?
var sItem= Table1[Item]
var sVisit= Table1[Visit]
var sCreated = Table1[Created at]
IF(MAXX(FILTER(Table1,Table1[Visit]=sVisit&& Table1[Item]=sItem),Table1[Created at)=sCreated ,1,0)
Solved! Go to Solution.
Hi @KIL2022 ,
1.The lookupvalue operation can use the merge function for match filtering. Please refer to
Merge queries overview - Power Query | Microsoft Learn
Solved: How to LOOKUPVALUE in PowerQuery? - Microsoft Fabric Community
2.The countif operation can achieved by group by and custom column. Please refer to
Power Query: COUNTIFS - Microsoft Community Hub
Solved: A simple way for COUNTIF function in power query - Power Platform Community (microsoft.com)
3.To filter the max value group by [visit] and [item], you can use group by feature and custom column.
Group by two fields:
Expand:
Create the custom column:
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KIL2022 ,
1.The lookupvalue operation can use the merge function for match filtering. Please refer to
Merge queries overview - Power Query | Microsoft Learn
Solved: How to LOOKUPVALUE in PowerQuery? - Microsoft Fabric Community
2.The countif operation can achieved by group by and custom column. Please refer to
Power Query: COUNTIFS - Microsoft Community Hub
Solved: A simple way for COUNTIF function in power query - Power Platform Community (microsoft.com)
3.To filter the max value group by [visit] and [item], you can use group by feature and custom column.
Group by two fields:
Expand:
Create the custom column:
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |