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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Proper Measure based on Filtered Column

Hi, 

 

I am wanting to show the proper value for (1) month in the "Written Unit Goal" measure:

 

goal help.JPG

 

May funded is showing a written date of 30 days after May 1.

The Written Goal should only show the value for April(29,212), but it is adding April & May:

 

goal help3.JPG

 

How do I fix this with DAX?

 

3 REPLIES 3
Anonymous
Not applicable

Do you have a simple measure that sum's the amounts?

 

Total Month = SUM ( TABLE_NAME[PLAN]

 

It could be a Date issue but I doubt it. 

 

Then apply a filter to the visualization that contains the Total number so it shows only one month. Here is a sample output showing two months and the Total for one month using the above measure.

 

Capture.JPG

 

 

Anonymous
Not applicable

Hi @Anonymous

Using your example, 

 

How do I get the card to show Value 2 = 40 when I filter on Month 5?

@Anonymous,

Do you want to show previous month value in card based on slicer selection? If so, please check the PBIX file in this similar thread

However, if you still have questions, please share sample data of your table for us to analyze.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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