The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi.., I have two tables where I need to get the count of rows based on condition matches.
ie., Get count of rows From Table 2 where Table 1 [Date] = Table 2[Date] and Table 1[Name] = Table 2[Name].
Need a Calculated Column, since I required to see this column when extracting the report.
Note: Since I have indirect relationship, I was not able to create a direct relationship between two tables.
Solved! Go to Solution.
Hi @Beast ,
Based on your description, I have created a simple sampe:
Please try:
Column = COUNTROWS(FILTER('Table 2',[Date]=EARLIER(Table1[Date])&&[Name]=EARLIER(Table1[Name])))
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Beast ,
Based on your description, I have created a simple sampe:
Please try:
Column = COUNTROWS(FILTER('Table 2',[Date]=EARLIER(Table1[Date])&&[Name]=EARLIER(Table1[Name])))
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
you can use relatedtaable() / related()/userelationship DAX functions to get that...
i guess related() or Relatedtable() will be use in this scenario. once you can try
if it is having relation then you can use crossfilter() DAX function
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
112 | |
69 | |
46 | |
43 |
User | Count |
---|---|
186 | |
85 | |
76 | |
74 | |
56 |