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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Two dates from the same database

Hello, good afternoon!!

I have the following drawback:

In a DB I have guide creation dates and a guide entry date, in a table I need to reflect how many guides created and how many guides entered, not all enter the same day of their creation, for example:

jmatamal_0-1670963356049.png

In power BI the same information is visualized to me like this:

jmatamal_1-1670963506414.png

jmatamal_2-1670963715327.png

Please help them.

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jmatamal ,

If I understand correctly,  you would like to get the count of guides created and guides entered. But you can't get the correct count of guide entered. Can I  know how did you set your table visual in Power BI? Please try to follow the steps below to do it and check if you can get the expected result...

1. Delete the relationship between the calendar table and fact table

yingyinr_0-1670986521141.png

2.  Create a table visual: put the field [Fecha] of calendar table and the following two measures onto the table visual

Count of guides creation =
VAR _seldate =
    SELECTEDVALUE ( 'Calendario'[Fecha] )
RETURN
    CALCULATE (
        COUNT ( 'ReporteIngresoGuiasxx'[Fecha_Creacion] ),
        FILTER (
            'ReporteIngresoGuiasxx',
            'ReporteIngresoGuiasxx'[Fecha_Creacion] = _seldate
        )
    )
Count of guides entered =
VAR _seldate =
    SELECTEDVALUE ( 'Calendario'[Fecha] )
RETURN
    CALCULATE (
        COUNT ( 'ReporteIngresoGuiasxx'[Fecha_Ingreso] ),
        FILTER (
            'ReporteIngresoGuiasxx',
            'ReporteIngresoGuiasxx'[Fecha_Ingreso] = _seldate
        )
    )

Best Regards

View solution in original post

6 REPLIES 6
Arul
Super User
Super User

@Syndicate_Admin ,

try the below, May be this would help.
Step 1: You need to create the inactive relationship between calendar table Date column and fact table ingestion date column. Please refe the attached image.

Arul_0-1670988775189.png

Step 2: You have to write a measure to get the correct ingestion date count by making the inactive relationship into active through USERELATIONSHIP dax function.

Ingestiondate count =
CALCULATE (
    COUNT ( Reportingestion_fact_table[Ingestion date] ),
    USERELATIONSHIP ( 'Calendar'[Date], Reportingestion_fact_table[Ingestion date] )
)

Step 3: Use the newly created measure in your report.

Arul_1-1670988981480.png

Thanks,





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Hello, good morning!!!

I only have a small inconvenience when entering the measurement, it does not show the date of the last registration

jmatamal_0-1671107152713.pngjmatamal_1-1671107181335.pngjmatamal_2-1671107211680.png

Anonymous
Not applicable

Hi @jmatamal ,

What's the meaning of "the date of the last registration"?  What's your final expected result? Could you please provide some raw data in your fact tables and special examples to explain it in order to get better unerstanding on your requirment and give you a suitable solution? Thank you. 

Best Regards

Anonymous
Not applicable

Hi @jmatamal ,

If I understand correctly,  you would like to get the count of guides created and guides entered. But you can't get the correct count of guide entered. Can I  know how did you set your table visual in Power BI? Please try to follow the steps below to do it and check if you can get the expected result...

1. Delete the relationship between the calendar table and fact table

yingyinr_0-1670986521141.png

2.  Create a table visual: put the field [Fecha] of calendar table and the following two measures onto the table visual

Count of guides creation =
VAR _seldate =
    SELECTEDVALUE ( 'Calendario'[Fecha] )
RETURN
    CALCULATE (
        COUNT ( 'ReporteIngresoGuiasxx'[Fecha_Creacion] ),
        FILTER (
            'ReporteIngresoGuiasxx',
            'ReporteIngresoGuiasxx'[Fecha_Creacion] = _seldate
        )
    )
Count of guides entered =
VAR _seldate =
    SELECTEDVALUE ( 'Calendario'[Fecha] )
RETURN
    CALCULATE (
        COUNT ( 'ReporteIngresoGuiasxx'[Fecha_Ingreso] ),
        FILTER (
            'ReporteIngresoGuiasxx',
            'ReporteIngresoGuiasxx'[Fecha_Ingreso] = _seldate
        )
    )

Best Regards

Thank you very much for your help, I have solved it in an excellent way.

A hug

Anonymous
Not applicable

Hi @jmatamal ,

Thanks for your feedback. Could you please mark the helpful post as Answered since the problem has been resolved? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

yingyinr_0-1671068595330.png

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.