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
Hello,
is there a way that my formula can include blank months.. I am using the below formula and would like to be able to get an average of 19.06 instead of 27.24. However, Power BI will exclude any months with no values in the formula. Below you will notice there is no values for March and May because of low sample size; however, we do want that to be included in the average because when folks are looking at this data YTD they will compare it to the overall YTD average and it all should match.
Link to file:
https://drive.google.com/file/d/1siXptcM3FGuvQ3VH4qbC3aBdgFUa0Dgl/view?usp=sharing
You're not working with a date table. This causes you to have no blank data at the missing months because those missing months are not actually there for that category.
What I believe is that you should create a dimension table. It can be date dimension table or only a single column with months. Then you can create relationship and show the months with 0 values.
Can you show me how I could accomplish this with the creation of a date table? The pbix is above. I have a date table in my original file set I just shorted this one down and provided dummy data to try and give a sampel file for assistance.
Perhaps SUM( ) divided by COUNTROWS( Table1) if Table1 has other columns with non-blanks in the rows where the column being averaged has blanks
Hi @nmckbcs
Can you consider sharing a sample from your 'download to use' table? This will help getting the solution fast.
Regards
Affan
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 |
---|---|
94 | |
84 | |
84 | |
73 | |
49 |
User | Count |
---|---|
143 | |
132 | |
110 | |
64 | |
55 |