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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
v-kered
Regular Visitor

Getting Current monht or week value by using any visualizations

Hi,

 

I have a graph which gives me the monthly trend. Below is a snapshot of it.

In the above image you can find the monthly view. So for the current month "January" the value is 55. when I pull  a card and get that field into it, it is giving me an average of all the values but I want  to show only 55 in the card visualizations.  Can you guys help me ingetting the current months value in a title instead of average of complete field?

 

Thanks,

Keerthi

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @v-kered,

You forgot to add the snapshot of your graph. Please help to post sample data of your tables if the following methods don't solve your issue.

I am not sure what fields you use to create the graph and the card. But if you want to display value of specific month in the Card visual, you can create a slicer using monthname field, and use the slicer to filter the card to show value for "January", there is an example for your reference.
1.PNG


Or you can drag monthname field to visual level filters, then select "January" in the filter to show value for "January".
1.PNG



However, if you want to dynamically show value for current month in card visual, you would need to create calculated column using the following formula, then create slicer using this calculated column  and use it to filter your card visual.

CheckCurrentMonth= if(MONTH('Date'[Date])=MONTH(NOW()),"Current Month",Format('Date'[Date], "YYYY mmmm"))

 

Thanks,
Lydia Zhang

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.

View solution in original post

4 REPLIES 4
v-kered
Regular Visitor

Help.JPGThank you for a quick response and it helped me a lot.

One Quick Question: I was given a Dax Function to calculate Current month

here we go :

CheckCurrentMonth = if(MONTH('Query1'[Date])=MONTH(NOW()),"Current Month",Format('Query1'[$CreatedTime], "YYYY mmmm"))

this function gives me the current days number. In the snapshot, for February the FDR% is 48%. (02/01/2017 is 50% and 02/02/2017 is 36%) so I need a overall February % which is 48%. But I get only 36 (Todays count). Not sure how to get the total months Percentage. Is this possible? If so, can you help me getting it

 

-Keerthi

v-kered
Regular Visitor

Help.JPGThank you for a quick response and it helped me a lot.

One Quick Question: I was given a Dax Function to calculate Current month

here we go :

CheckCurrentMonth = if(MONTH('Query1'[Date])=MONTH(NOW()),"Current Month",Format('Query1'[$CreatedTime], "YYYY mmmm"))

this function gives me the current days number. In the snapshot, for February the FDR% is 48%. (02/01/2017 is 50% and 02/02/2017 is 36%) so I need a ovverall February % which is 48%. But I get only 36 (Todays count). Not sure how to get the total months Percentage. Is this possible? If so, can you help me getting it

 

-Keerthi

v-kered
Regular Visitor

Thank you for a quick response and it helped me a lot.

v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @v-kered,

You forgot to add the snapshot of your graph. Please help to post sample data of your tables if the following methods don't solve your issue.

I am not sure what fields you use to create the graph and the card. But if you want to display value of specific month in the Card visual, you can create a slicer using monthname field, and use the slicer to filter the card to show value for "January", there is an example for your reference.
1.PNG


Or you can drag monthname field to visual level filters, then select "January" in the filter to show value for "January".
1.PNG



However, if you want to dynamically show value for current month in card visual, you would need to create calculated column using the following formula, then create slicer using this calculated column  and use it to filter your card visual.

CheckCurrentMonth= if(MONTH('Date'[Date])=MONTH(NOW()),"Current Month",Format('Date'[Date], "YYYY mmmm"))

 

Thanks,
Lydia Zhang

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.