Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
Looking for some guidance here.
Need to replace PY values of 0 with the average of PY where ENTITY, PC_GROUP & AC_GROUP are the same.
Any one have any ideas on how it can be done in DAX or should I be creating an aggregate table and linking it prior to the load?
ENTITY | PC_GROUP | AC_GROUP | PERIOD | PY | CY |
E1 | PC1 | G1 | P05 | 0 | 1 |
E1 | PC1 | G1 | P06 | 1 | 1 |
E1 | PC1 | G1 | P07 | 1.4848947 | 1 |
E1 | PC1 | G1 | P08 | 1 | 1.21053 |
E1 | PC1 | G1 | P09 | 1.3233083 | 1 |
I think this DAX will do what you are looking for. I named the table "PYData" and added a Calculated Column with this expression:
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
23 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
43 | |
31 | |
24 | |
23 | |
22 |