Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.