Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have a simple table with count of opportunities by created date and closed date.
I want to create a table that shows the same number of opportunity that were created on that month regardless of when they closed. (The row should have the same number each column). So for example, in the right table, the row 2014 May should all have 376 each column, June 2014 should have 229 each column.
Right now I am using this formula:
Solved! Go to Solution.
Sorry, I'd flipped my created and closed dates around as I assumed the data could not be correct the other way around...
So if it is CreateDate on the rows that is the column you'd want to bring back in using VALUES()
eg.
I'm assuming that in your screenshot that the columns across the page are created dates, and the rows are closed dates (based on the assumption that the columns start in 2013 and the rows start in 2014 and you can't close items before they are created).
So shouldn't your formula be the following:
Denominator = CALCULATE(COUNTROWS(Opp),ALLSELECTED(Opp[CreatedDate])).
Or have I misunderstood what values are on rows and columns in your matrix visual?
Thanks @d_gosbell for the reply. I have closedate in columns and created date in rows so it's the opposite.
So you are saying that the circled item below was created in May 2014, but closed over a year earlier in Jan 2013? That seems a bit strange.
I think the problem with this is that ALLSELECTED retains the row and column filter context so you probably want to use a calculation like the following using ALL to strip out all the filters then using VALUES to just bring back the CloseDate filters
Haha yeah we have some serious data integrity issues.
I tried the solution but it didn't work...
Sorry, I'd flipped my created and closed dates around as I assumed the data could not be correct the other way around...
So if it is CreateDate on the rows that is the column you'd want to bring back in using VALUES()
eg.
Thank you! It worked!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |