Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to prompt two variables from the user to illustrate the trend over 12 months.
I have used what-if function here to prompt two values from the user.
1. Parameter[Parameter Value]
2. Parameter 2[Parameter Value 2]
While running a calculated field based on multiplying the two Parameters, I have got:
I am running into my issue.
How do I change my Outlook Margin RT to include values from August?
Solved! Go to Solution.
@Anonymous , Try a measure like this, prefer a date table
Cumm = CALCULATE(Sumx(values('Date'[Month Year]),[Outlook Margin]) ,filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
Here is the linkk to download my pbix file https://app.powerbi.com/links/74mArxsJN5?ctid=032bca7f-8b89-4d88-a182-558d8ce2e16f&pbi_source=linkSh...
@Anonymous , Try a measure like this, prefer a date table
Cumm = CALCULATE(Sumx(values('Date'[Month Year]),[Outlook Margin]) ,filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
Thanks for the replay @amitchandak. I wanted to know how I can include a month condition element into Outlook margin when I want a sepecific month along with 'Sales'[Actual margin] == 0?
Outlook Margin = IF('Sales'[Actual margin] == 0, Parameter[Parameter Value]*'Parameter 2'[Parameter Value 2], 'Sales'[Actual margin])
I tried this, however the second condition does not seem to work,
Hi @Anonymous,
You can't directly use date value as condition in if statement, I'd like to suggest you add the date field to compare with this values:
Outlook Margin Oct =
IF (
AND ( 'Sales'[Actual margin] = 0, 'Sales'[Date] = DATE ( 2022, 10, 31 ) ),
'Parameter Margin'[Parameter Value] * 'Parameter Volume'[Parameter Value 2],
'Sales'[Actual margin]
)
Regards,
Xiaoxin Sheng
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 |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |