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
Hi all,
I have question regarding the lookupvalue function. Currently I have 2 tables:
- 1 table with all the IDs and their corresponding location (but 1 ID can be mapped to multiple locations)
| ID | Location |
| 1 | Spain |
| 2 | Italy |
| 2 | Spain |
| 2 | UK |
| 3 | Germany |
| 4 | France |
| 5 | France |
| 6 | Belgium |
| 7 | Sweden |
| 7 | Finland |
| 8 | France |
| 9 | Germany |
| 10 | Italy |
- 1 table with the request for each ID.
| ID |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
What I want to achieve is an overview like this:
| Location | Total requests |
| Spain | 2 |
| Italy | 2 |
| UK | 1 |
| Germany | 2 |
| France | 3 |
| Belgium | 1 |
| Sweden | 1 |
| Finland | 1 |
So this table gives an overview of the number of requests for each location, so it doesn't really matter if the ID has multiple locations, I want to count them all.
I've already tried some alternatives to the lookupvalue to receive the firstnonblank and lastnonblank so that I have multiple values but I have no idea on how to create the table above...
Does anyone have some suggestions or ideas on how I can create this kind of table?
Thanks a lot in advance!!
Solved! Go to Solution.
Hi @glennm,
You could create a summarize table as below:
Result Table =
SUMMARIZE (
'ID-Location',
'ID-Location'[Location],
"Total Request", COUNT ( 'ID-Location'[ID] )
)
Best regards,
Yuliana Gu
Hi @glennm,
You could create a summarize table as below:
Result Table =
SUMMARIZE (
'ID-Location',
'ID-Location'[Location],
"Total Request", COUNT ( 'ID-Location'[ID] )
)
Best regards,
Yuliana Gu
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |