cancel
Showing results 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

Helper I

## 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:

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
Community Support

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:

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

2 REPLIES 2
Community Support

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:

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

Helper I

Sweet!

Thank you very Much!