How to Limit data for Max[Fiscal_Year] and Max[Fiscal_Month] - business-intelligence

I have 2 columns named Fiscal_Year and Fiscal_Month . Fiscal year is integer type and fiscal month is string type . Now I want that visualization should show data for max[fiscal_month] in accordance to max[fiscal_year].For eg if data contains month till sept for year 2021 then data should show only sept month data for year 2021.
Any idea how do we do that ?

First Concat the columns of month and year,Then convert it into date format eg.Date(Concatenate([Month],"/",[Year])),make sure the date format is MM-yyyy which will get you a column with format like 09-2021. Now Create any visualization and go to show/hide section and show only data with max month.

Related

How can I change period to format date? - Quicksight

I have period date compose by 6 numbers, the first four numbers it’s the year and the last two is the month, example: yyyymm. (202201 )
The problem with this field is that sometimes changes between int and string. How can I change everything to a date format? dd/MM/yyyy
How can I change everything to a date format? dd/MM/yyyy

I am trying to do a Month Over Month review but not all months have data and the users want placeholders for the months with no data

I am trying to do a Month Over Month review but not all months have data and the users want placeholders for the months with no data. I was trying to use my start and end date parameters but I am not getting anywhere.
I am using SSRS - attempting to use a matrix to show on the left hand side for the rows the Month and the column grouped by current year and prior year which is generated from my date parameters. I have four date parameters; a current year star, current year end, prior year start and prior year end.
I can get the matrix to populate if the prior year has data for a month that the current year does not and vice versa but I cannot get the data to populate with a placeholder for a month with no data.
Has anyone had success doing this without using a CTE?

Calculate Full Period Basing Dates Selected by User on the Date Slicer

We need to create a dashboard with a date slicer and a TimeGranularity slicer.
The date slicer allows the user to choose which every date range they want.
The TimeGranularity slicer has the values like Day, Week, Fiscal Period, and etc.
To make it easier to explain. I reduce the model to only 4 tables: a fact table "FactTable", a date table "DateTable", a dim table "TimeGranularity" with flattened dates for different time granularities like Day, Week, Fiscal Period, a dim table "Location"
The TimeGranularity table connects to DateTable as many to one relationship.
What we need is, when the user select on the date slicer with a date range like 01-Jan-2017 to 05-May-2017 and the Fiscal Period level on the TimeGranularity slicer, the metric [Sales] should be able to pull/calculate the full fiscal periods that 01-Jan-2017 and 05-May-2017 fall in plus the fiscal periods in between.
Our DateTable has all the related columns that might be needed for this, like FiscalPeriodID, FiscalPeriodDays (how many days in each FP), FiscalPeriodDayNumber(day numbering in each FP), FiscalPeriodIndex (numbering of all FPs)
Currently the dax for [Sales} is:
[Sales]=Calculate(sum(FactTable[Sales]), TimeGranularity)
I would love to share the pbix file but don't know how to load it up here....
Thanks a lot in advance!

In NetSuite Advanced PDF Template, I got 00/01/2017, 0th moth, when I set date format to mm/dd/yyyy

I used <#setting date_format="mm/dd/yyyy"/> to set my date format. However, When I print the dates, it always print 00/xx/xxxx, 0th month.
mm means minutes, not months in year; use MM for that: MM/dd/yyyy. See: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

Oracle SQL Output to Excel - Date format issue

I ran an SQL Query for Oracle which consists of Invoice date and Check date. When these data are copied on to an Excel Spreadsheet as text, it's dispayed as ex: "13-10-31" (Oct 31, 2013). However, when converted to date format, it's displayed as "10/13/1931". I've tried different date types but it always recognizes as the first part of the text as the day, then month, then year. I need these values to be setup as a date format as I need to calculate Days Payable Outstanding and other related ratios.
Is there any way to convert these values so that Excel recognizes the day, month, and year correctly? Would there be a macro that could automate this process for existing data and data that will be added in the future?
Thank you in advance.
Firstly, I hope the data type of your date column is DATE.
Secondly, the date should always have year as YYYY and not just YY. The world has already learned from Y2K bug.
If above two points are met, then while displaying use to_char(date_column, 'mm/dd/yyyy'). Thus, with YYYY format, there won't be any confusion between year and other fields.

Resources