Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

how to add columns in a dimension

Hi, experts, I have a problem in display some measures, here is the data:

 

but the visual should be like this, a summary of top 3 months should be added, and similiary the gap of sum(202201-202206)and sum(202207-202212) should be added in a column

so how to add such a summary value in rows of yearmonth column? Thank you.

 

 

 

1 REPLY 1
pi_eye
Resolver IV
Resolver IV

Hi @Anonymous 

To display only months 1-3, and only add those up in a total, you can apply a filter to the measure

See table below:

 

pi_eye_0-1670931776610.png

 

 

Calc1,2 and 3 are:

calc1 = CALCULATE(sum(Sheet1[cal1]) ,filter(Sheet1,Sheet1[yearmonth]in{202201,202202,202203})  )
calc2 = CALCULATE(sum(Sheet1[cal2]) ,filter(Sheet1,Sheet1[yearmonth]in{202201,202202,202203})  )
calc3 = CALCULATE(sum(Sheet1[cal3]) ,filter(Sheet1,Sheet1[yearmonth]in{202201,202202,202203})  )
 
What did you mean by the gap of the sums? As an extra column in addition to the total?
 
Pi

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.