I want to show a link at a specific time and date.
Is it possible to get a value from a table and show that link like this
#MonthAsString(month)# #year#
on a specific time and date?
From the table I'm getting the record from a form I submit and there it create 1 record (which will
be enter once a month) I use this table to output the winners which I want to show in the link above
but I only want to show that link at a specific time and date. Not sure if the best way to do this
is in the form I submit. I have a column which the user submit the time and date they want the link to show
and that goes into the table. Maybe I don't need to insert it into the table , Is there a better way to do this?
Putting it into a table is a good solution then you just need to use a cfif. Note that now() would need to represent the exact time and if you're going to match between certain times you would need to update your if as well.
<cfif now() GT qryName.myDate>
#MonthAsString(month)# #year#
</cfif>
Related
I have a requirement in my project where I have to concatenate the e-mail ID of the report user in a column.
The Column where this has to be done is a web-link that redirects to a different application.
So for eg: the data in the columns is "**www.abc.html?/powerbi**".
My result should be "**www.abc.html?/powerbi,emailid#company.com**"
I want to get the email id of the user who is accessing he report.
I am not able to use USERPRINCIPALNAME() in calculated columns. Is there any alternate way to achieve this ?
Thanks in Advance.
Best Regards,
Pratik
Columns are created at refresh time, and it would not make sense to include things like USERPRINCIPALNAME in a column.
Measures are calculated at query time, and can contain these things. You could try to incorporate this in a measure instead.
You can concatenate the value of userprincipal() into a text field with a DAX query in a measure. An example of this is below:
WebUrl = www.abc.html?/powerbi,"&Userprincipal()&"/somefolder/"&FirstNonBlank(Table[ConcatText],Table[ConcatText]=Table[ConcatText])
If you need it with specific text from another field, you can force the text from the line by adding formula like FirstNonBlank() as below:
WebUrl2 = www.abc.html?/powerbi,"&Userprincipal()&FirstNonBlank(Table[TableName],TableName[Text]=TableName[Text])
I would like to create a date filter for all pages in my report.
I've tried using a date slicer, however, it defaults to "on this visual".
try using the following formula to create a table:
Calendario = CALENDAR(DATE(2018,01,01),DATE(2019,12,31))
--The first date would be the lower bound and the second one the upper bound.
Then procede to link every table date to this specific table. If you have a Date variable for each one table, it will not filter all the data.
Also, you can try going to View and selecting Sync Slicers. Another way of doing this is copy and pasting the filter in another page. It will show a dialog box that will ask if you want to sync all the slicers.
I am trying to create something that will populate the day of the week in one cell based on a date entered in another, BUT in Master Data Services. I know I will need to do this in a business rule and apply it to the attributes. I am wondering if this can be don using REGEX patterns or any other clever method. So, for example if I have a column with 12/21/2016 in it, I want the next column to say "Wednesday". Thanks!
The simplest way would be using sql and use a calculated column or directly in a view. I'm not that familiar with MDS so there might be a better solution (or not even possible).
alter table mytable add weekday as DATENAME(dw,fieldname) persisted
Do never try to do your own date/time functions, you will fail
I have 40 million rows in my dataset. Each day I may get an extra 100 rows. Obviously I don't want to have to import the whole 40 million each time I do a data refresh. Is it possible to do an incremental refresh where only the new rows are added?
I don't think incremental update as you describe it is possible yet.
It looks like you can push rows with Power BI REST API, if you're happy to switch to that.
However, you might find this workaround useful:
Split your table and query into two: where date <= 'somedate' and where date >'somedate'
Add an "empty query", use Table.Combine to join your two subtables. Use this as your main table.
Whenever you need to refresh, only refresh the second query (the one with where date >'somedate').
Every once in a while, when that second query starts taking a long time, change somedate to the current date and do a full refresh.
The feature has now been implemented and is called Incremental refresh. Currently it is a premium only feature.
I have a couple of simple questions on DatePicker...
Is it possible for me to select a time along with my date? How can I do that?
I need to make sure my user can not pick a date that happens before a certain time, and I also need to make sure that the user can select dates further back in history that is the norm...
How can I do that?
No, the date picker is specifically for dates, no times. You can always build one separately. Just Google it. Also, what do you mean by a date before a certain time? Why not just limit the dates minDate and maxDate options?