Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I have couple of Fact and dimension table and trying to query the measure from Fact Table along with few columns from Dimension table but query take long time . Can someone please help
Fact:
ProductId
ProductCountLocal -- this is Count measure on SalesId with IsLocal =="Yes"
IsLocal
Dimension
ProductId
ProductName
ProductLocation
DAX Code
EVALUATE
SELECTCOLUMNS (
SUMMARIZECOLUMNS (
Fact[ProductId],
Dimension[ProductName],
Dimension[ProductLocation]
"ProductCount",Fact[ProductCountLocal],
),
"ProductId",Fact[ProductId],
"ProductName", Dimension[ProductName],
"ProductLocation", Dimension[ProductLocation],
"ProductCount", [ProductCount]
)
Thanks,
Abhiram
@abhiram342 , is this not work alone?
SELECTCOLUMNS (
Fact[ProductId],
Dimension[ProductName],
Dimension[ProductLocation]
"ProductCount",Fact[ProductCountLocal],
)
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
19 | |
15 | |
7 | |
6 |