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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EmmaMG
New Member

graph that show the data for the 13 month early to the select date. My table have 3 fields of date

 need to create a graph that show the data for the 13 month early to the select date.

The dificult in this case is that my table have 3 field of date.
It is a table with Date creation, date modified and date closed.

I need to show the petitions that are not resolved in the 13 last month from a period selected

The metric that I need to use is this:

2. Peticiones no resueltas = CALCULATE(COUNTx(FILTER(T_PETICIONES,T_PETICIONES[Fecha apertura]<=max(Calendario[Fecha]) && (ISBLANK(T_PETICIONES[Fecha resolución]) || T_PETICIONES[Fecha resolución]>max(Calendario[Fecha])) && (ISBLANK(T_PETICIONES[Fecha cierre]) || T_PETICIONES[Fecha cierre]>max(Calendario[Fecha]))),(T_PETICIONES[ID_Petición])),CROSSFILTER(T_PETICIONES[Fecha apertura],Calendario[Fecha],None))

Please, could you help me?

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @EmmaMG ,

According to your description, I create some data:

v-yangliu-msft_0-1616745487762.png

Here are the steps you can follow:

1. Create measure.

Measure =
var _select=SELECTEDVALUE('Table'[ Date creation])
return
CALCULATE(COUNT('Table'[Result]),FILTER(ALL('Table'),'Table'[ Date creation]<=_select&&'Table'[ Date creation]>=EOMONTH(_select,-14)&&'Table'[Result]="NO"))

2. Result.

v-yangliu-msft_1-1616745487767.png

You can downloaded PBIX file from here.

 

If this is not up to your expected result, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data

 

Best Regards,

Liu Yang

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

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of your PBI file (please ensure that column headings and data therein are in English) and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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