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.
Hello,
I'am making a ssrs report based on a tabularmodel.
I have used the function SUMMARIZECOLUMNS. This almost giving me the result I want.
This is my code:
SUMMARIZECOLUMNS (
'Customer'[Name],
'Contract'[Contractnumber],
'Contract'[Date],
'Contract'[Checked],
"Amount",[Number of contracts]
)
The result is as flows
What I actually need for in my report is as follows:
So I need on line for every name, contract , checked with the SUM of the amount of the lines and The min and max date of those lines.
Is this possible with a DAX code?
Solved! Go to Solution.
Please try
=
ADDCOLUMNS (
SUMMARIZE ( 'Contract', 'Customer'[Name] ),
"Contract", CALCULATE ( MIN ( 'Contract'[Contractnumber] ) ),
"Checked", CALCULATE ( MAX ( 'Contract'[Checked] ) ),
"Amount", [Number of contracts],
"Start Date", CALCULATE ( MIN ( 'Contract'[Date] ) ),
"End Date", CALCULATE ( MAX ( 'Contract'[Date] ) )
)
Please try
=
ADDCOLUMNS (
SUMMARIZE ( 'Contract', 'Customer'[Name] ),
"Contract", CALCULATE ( MIN ( 'Contract'[Contractnumber] ) ),
"Checked", CALCULATE ( MAX ( 'Contract'[Checked] ) ),
"Amount", [Number of contracts],
"Start Date", CALCULATE ( MIN ( 'Contract'[Date] ) ),
"End Date", CALCULATE ( MAX ( 'Contract'[Date] ) )
)
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 |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |