Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
So I have a column that is formatted as follows
Booking_Table
Order # | Vendor | Days Difference
1 Vnd1 3
2 Vnd1 6
3 Vnd1 -1
4 Vnd2 4
5 Vnd2 5
6 Vnd3 -2
And a second table that is compoased of just distinct vendors
Vendor_Average
Vendor |
Vnd1
Vnd2
Vnd3
I want to add a second column to this table that is the AVERAGE of a vendors days diference from table one, as shown below
Vendor_Average
Vendor | Average Days
Vnd1 2.1
Vnd2 -1.3
Vnd3 4.1
I have tried the following along with several other things but I have not been able to figure out what to do exactly. It seems like a simple concept but I cannot figure out how to execute it. Any assistance in the correct direction would be apprecieated.
Note, this is the DAX expression to create the table, I am attempting to add the column through the table creation expression.
Vendor_Average = SUMMARIZE(Booking_Table, Booking_Table[Vendor], "AvgNumDay", AVERAGEX(FILTER(Booking_Table, Booking_Table[Vendor] = RELATED(Vendor_Average(Vendor))
Solved! Go to Solution.
Hi @WirelessBrains,
Please modify your DAX formula as below:
Vendor_Average = SUMMARIZE ( Booking_Table, Booking_Table[Vendor], "Average Days", AVERAGE ( Booking_Table[Days Difference] ) )
Regards,
Yuliana Gu
Hi @WirelessBrains,
Please modify your DAX formula as below:
Vendor_Average = SUMMARIZE ( Booking_Table, Booking_Table[Vendor], "Average Days", AVERAGE ( Booking_Table[Days Difference] ) )
Regards,
Yuliana Gu
Worked perfectly! Glad to see that I was not that far off, thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |