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.
Hi ,
I have created below measure -
measure = CALCULATE(SUM(table[visits]),Allselected(table[pagename]))
but i want to take sum of other columns also .
Let me know how can i incorporate, other columns like filedownloads,videos
Am getting error when i tried this -
measure = CALCULATE(SUM(table[visits]),SUM(table[filedownloads]),SUM(table[videos]),Allselected(table[pagename]))
Solved! Go to Solution.
Hi @Jane689 ,
I have created a simple sample, please refer to it to see if it helps you.
Create 2 measures.
Measure = MAX('Table'[videos])+MAX('Table'[filedownloads])+MAX('Table'[visits])
Measure 2 = var _b=SUMMARIZE('Table','Table'[pagename],"aaa",[Measure])
return
IF(HASONEVALUE('Table'[pagename]),[Measure],SUMX(_b,[aaa]))
If it still does not help, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jane689 ,
I have created a simple sample, please refer to it to see if it helps you.
Create 2 measures.
Measure = MAX('Table'[videos])+MAX('Table'[filedownloads])+MAX('Table'[visits])
Measure 2 = var _b=SUMMARIZE('Table','Table'[pagename],"aaa",[Measure])
return
IF(HASONEVALUE('Table'[pagename]),[Measure],SUMX(_b,[aaa]))
If it still does not help, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the input.
I need to use this measure as values in matrix visual and show visits,file downloads and videos in different rows.
The solution that you have provided sums up all 3 columns but i need to show these 3 separately .
Hi,
Thank you for your feedback.
Please share your sample pbix file's link together with how your desired outcome of the visualization looks like, and then I can try to look into it to come up with a more accurate solution.
Thanks.
Hi,
I am not sure how your datamodel looks like, but please try the below whether it suits your requirement.
new measure =
CALCULATE (
SUMX ( table, table[visits] + table[filedownloads] + table[videos] ),
ALLSELECTED ( table[pagename] )
)
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 |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |