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.
HI,
I am trying to see total change in pipeline value over time. The table setup for this is, date and opportunity stage table. The opportunity table has a lot of duplicate values with difference in dates. I need to grab the sum of amount for each id from the opportunity table which is <=each day on the date table.
my current logic is:
To be general, you may modify your measure like below and check if it can work:
Pipeline Value = VAR maxdate = MAX ( 'opp stage'[OpportunityHistories.CreatedDate] ) VAR opp = VALUES ( 'opp stage'[OpportunityHistories.Id] ) RETURN CALCULATE ( [tot hist amt], FILTER ( 'Date', maxdate < 'Date'[Date] ), FILTER ( ALLEXCEPT ( 'opp stage', 'opp stage'[Id] ), opp ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That did not work.
Error: A table of multiple values was supplied where a single value was expected.
The date table and opp stage table are have many to one relationship on created date (opp stage) and date (date table) if that helps.
still struggling to store one value each in a variable for each id and sum that up.
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
Are the dataset very large? If not, I would suggest you to merge the two tables then you can have same row content in the same merged table.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I dont think we can create a same table unless we are summarizing columns from different table. As there are multiple date and stages for each opportunity id, we need to grab the most recent one based on selection.
I tried creating a table using summarize but that process did not work either.
I am trying the following formula for a summarized table:
User | Count |
---|---|
117 | |
74 | |
62 | |
50 | |
46 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |