Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |