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

Join 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.

Reply
Anonymous
Not applicable

Back to Basics - Calendar table with fact table and measures to sum values

I am still getting my head wrapped around measures, but if I undersnad correctly, if you have a calendar table linked to a fact table (Contains a date, and a number), you can create a table visual with at the calendar table date and the number column from the fact table (Say Lbs produced), then selections made in the date slicer (again, pointed to the Calendar table), the table visual will show the matching data.

 

Also, you can make a measure that will sum the value of the number column based on the displayed rows in the table visual.

 

I have succeeded in the first, the second, a meaure:

M_LbsProdcuedPerMonth = sum(vwFactProdShipComparison[producedLbs])
 
Seems to show the Lbs produced for the day in the month instead of the sum of lbs for the selected records:
beenherebefore_0-1719262541876.png

 

I am after a measure that will show the sum at the bottom: 7048129.44

I know it's something dumb. Please enlighten me.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I made simple samples and you can check the results below. You can try to put your measure into a card visual or you can use the following expression:

vtianyichmsft_0-1719281515153.png

Measure 2 = SUMX(ALLSELECTED('Table'),[Value])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I made simple samples and you can check the results below. You can try to put your measure into a card visual or you can use the following expression:

vtianyichmsft_0-1719281515153.png

Measure 2 = SUMX(ALLSELECTED('Table'),[Value])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Sweet!

Thank you very Much!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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