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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

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
v-tianyich-msft
Community Support
Community Support

Hi @beenherebefore ,

 

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
v-tianyich-msft
Community Support
Community Support

Hi @beenherebefore ,

 

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.

Sweet!

Thank you very Much!

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.