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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.