cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
SJHA
Helper I
Helper I

Format datatime in paginated report

Hi, I've copied the DAX Query from a PowerBI report, but the datetime format has timestamp in the paginated report, which I'm trying to remove. Could some help me figuring out how to format the column?

 

Part of the DAX: 'Forbrug'[Last Activity Date] is showing for exampel: 11-03-2020 00:00:00 and I only need the date.

I tried to put in 'Forbrug'[Last Activity Date].Date but it didn't work...

 

  VAR __DS0Core = 
    SELECTCOLUMNS(
      KEEPFILTERS(
        FILTER(
          KEEPFILTERS(
            SUMMARIZECOLUMNS(
              'Forbrug'[Last Activity Date],
              'Projekter'[Sektionsnummer],
              'Projekter'[Selskab],
              'Forbrug'[Plads anvendt (MB)],
              'Forbrug'[Antal filer],
              'Projekter'[Projektnavn],
              'Organisation'[Områdenavn],
              'Projekter'[wpStage],
              'Projekter'[Status],
              'Projekter'[Link],
              'cvref References'[Posterbar],
              'Projekter'[Sagsnummer],
              'WorkPoint faser'[Oprettet],
              'WorkPoint faser'[Ekstern deling],
              __DS0FilterTable,
              __DS0FilterTable2,
              __DS0FilterTable3,
              "CountRowsWorkPoint_faser", CALCULATE(COUNTROWS('WorkPoint faser'))
            )
          ),
          OR(
            OR(
              OR(
                OR(
                  OR(
                    OR(
                      OR(
                        OR(
                          OR(
                            OR(
                              OR(
                                OR(
                                  OR(
                                    NOT(ISBLANK('Forbrug'[Last Activity Date])),
                                    NOT(ISBLANK('Projekter'[Sektionsnummer]))
                                  ),
                                  NOT(ISBLANK('Projekter'[Selskab]))
                                ),
                                NOT(ISBLANK('Forbrug'[Plads anvendt (MB)]))
                              ),
                              NOT(ISBLANK('Forbrug'[Antal filer]))
                            ),
                            NOT(ISBLANK('Projekter'[Projektnavn]))
                          ),
                          NOT(ISBLANK('Organisation'[Områdenavn]))
                        ),
                        NOT(ISBLANK('Projekter'[wpStage]))
                      ),
                      NOT(ISBLANK('Projekter'[Status]))
                    ),
                    NOT(ISBLANK('Projekter'[Link]))
                  ),
                  NOT(ISBLANK('cvref References'[Posterbar]))
                ),
                NOT(ISBLANK('Projekter'[Sagsnummer]))
              ),
              NOT(ISBLANK('WorkPoint faser'[Oprettet]))
            ),
            NOT(ISBLANK('WorkPoint faser'[Ekstern deling]))
          )
        )
      ),
      "'Forbrug'[Last Activity Date]", 'Forbrug'[Last Activity Date],
      "'Projekter'[Sektionsnummer]", 'Projekter'[Sektionsnummer],
      "'Projekter'[Selskab]", 'Projekter'[Selskab],
      "'Forbrug'[Plads anvendt (MB)]", 'Forbrug'[Plads anvendt (MB)],
      "'Forbrug'[Antal filer]", 'Forbrug'[Antal filer],
      "'Projekter'[Projektnavn]", 'Projekter'[Projektnavn],
      "'Organisation'[Områdenavn]", 'Organisation'[Områdenavn],
      "'Projekter'[wpStage]", 'Projekter'[wpStage],
      "'Projekter'[Status]", 'Projekter'[Status],
      "'Projekter'[Link]", 'Projekter'[Link],
      "'cvref References'[Posterbar]", 'cvref References'[Posterbar],
      "'Projekter'[Sagsnummer]", 'Projekter'[Sagsnummer],
      "'WorkPoint faser'[Oprettet]", 'WorkPoint faser'[Oprettet],
      "'WorkPoint faser'[Ekstern deling]", 'WorkPoint faser'[Ekstern deling]
    )

  VAR __DS0PrimaryWindowed = 
    TOPN(
      501,
      __DS0Core,
      'Forbrug'[Last Activity Date],
      1,
      'Projekter'[Sektionsnummer],
      1,
      'Projekter'[Selskab],
      1,
      'Forbrug'[Plads anvendt (MB)],
      1,
      'Forbrug'[Antal filer],
      1,
      'Projekter'[Projektnavn],
      1,
      'Organisation'[Områdenavn],
      1,
      'Projekter'[wpStage],
      1,
      'Projekter'[Status],
      1,
      'Projekter'[Link],
      1,
      'cvref References'[Posterbar],
      1,
      'Projekter'[Sagsnummer],
      1,
      'WorkPoint faser'[Oprettet],
      1,
      'WorkPoint faser'[Ekstern deling],
      1
    )

 

1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

You can set the displayed date format in the properties.

Show the properties pane first

PaulOlding_1-1632398743663.png

 

Select the box where you're displaying the date.  The format is in the Number section of the properties.

 

PaulOlding_0-1632398713144.png

 

View solution in original post

2 REPLIES 2
PaulOlding
Solution Sage
Solution Sage

You can set the displayed date format in the properties.

Show the properties pane first

PaulOlding_1-1632398743663.png

 

Select the box where you're displaying the date.  The format is in the Number section of the properties.

 

PaulOlding_0-1632398713144.png

 

@PaulOlding Amazing. I was making it way too hard for myself. Thank you for your help!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors