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 there,
I have the following measure which I need to adapt to include a Measure in place of the Amount field in the Dyn_OpportunityProduct table..
Solved! Go to Solution.
Hi @Tob_P
You could replace the SUM(...) with a measure. That would give you
Product Target Filtered Sales =
sumx (
'tblRep_List',
VAR BonusStartDate ='tblRep_List'[Product Bonus Start Date]
RETURN
CALCULATE(
[Your Measure],
KEEPFILTERS(
'CRM: Opportunity'[Date Spec Secured] >= BonusStartDate)))+0
I'd suspect performance could be an issue if you have a sizable amount of data.
Hi @Tob_P
You could replace the SUM(...) with a measure. That would give you
Product Target Filtered Sales =
sumx (
'tblRep_List',
VAR BonusStartDate ='tblRep_List'[Product Bonus Start Date]
RETURN
CALCULATE(
[Your Measure],
KEEPFILTERS(
'CRM: Opportunity'[Date Spec Secured] >= BonusStartDate)))+0
I'd suspect performance could be an issue if you have a sizable amount of data.
@Tob_P , if you do calculation inside expression of sumx, you need calculate. else you can have like
measure = VAR BonusStartDate ='tblRep_List'[Product Bonus Start Date]
RETURN
CALCULATE(
SUM('Dyn_OpportunityProduct'[Amount]),
KEEPFILTERS(
'CRM: Opportunity'[Date Spec Secured] >= BonusStartDate))
Product Target Filtered Sales =
sumx (
'tblRep_List', [measure]
)+0
or
Product Target Filtered Sales =
sumx (
'tblRep_List', [Any measure]
)+0
Thanks for coming back to me. I'm afraid the first part of the suggestion will now work as writing...
measure = VAR BonusStartDate ='
....and this will only allow me to populate a Measure and not a table...
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |