The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Community members,
I am a newbie in DAX and trying out following DAX to create a temp table.
As per the model, the Date table has a relationship with Sales table. Not sure why then, Related function isnt working.
One can refer the pbix on which i am working to this link
https://drive.google.com/file/d/1a7E6ZCmFPciuYG3CDH8tzMQDPim3toLO/view?usp=share_link
Thank you so much for your time in trying to help here.
Cheers
ARU
Solved! Go to Solution.
Not 100% sure why RELATED doesn't work with ADDCOLUMNS, but you can achieve the same thing with
ADDCOLUMNS(
SUMMARIZE( 'Sales', 'Sales'[OrderDateKey], 'Date'[Date] ),
"sales", [Sales Amount]
)
When using SUMMARIZE you can group by any column from the expanded table.
Not 100% sure why RELATED doesn't work with ADDCOLUMNS, but you can achieve the same thing with
ADDCOLUMNS(
SUMMARIZE( 'Sales', 'Sales'[OrderDateKey], 'Date'[Date] ),
"sales", [Sales Amount]
)
When using SUMMARIZE you can group by any column from the expanded table.
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |