hint
4 TopicsMeasure for colouring columns on a higher aggregation level than detailed data
Hi there I kindly request your help/hints on the follwing, because I am stuck somwhere in between... I need to color a column chart based on the average out of X Months, whereas No of months is from a relative date slicer The data are weekly based (Date of Sunday) and is counting number of contracts: MyMeasure = Sum( MyTable[NoOfContracts] ) Using my datetable I am visualising MyMeasure in a columnchart I wrote a measure to get the average per No of selected Months: MyMonthlyAverage = AVERAGEX ( VALUES( calendar[MonthYear]), MyMeasure ) Based on the relation between MyMeasure and MyMonthlyAverage I want to decide the color of the column, "Geen" for above, "Red" for below MyMonthlyAverage. Unfortunateley it seems that the number per Month (MyMeasure) is not divided by no of months but by the number of Sunday-dates in the selected period (e.g. MyMonthlyNoOfContracts / No of Sunday-Dates (52) and not MyMonthlyNoOfContracts / No of Months selected (12)) MyColumnColor = var check = [MyMeasure] var limit = [MyMonthlyAverage] return SWITCH( TRUE(), check < limit, "Red", "Green") Aways "Green" gets returned and so are the columns Question: What is the Syntax to write a correct and proper MyMonthlyNumberOfContracts? Appreciating your Input thx in advance Thomas566Views0likes2CommentsVisual to display Images with fast rendering time (<2 secs)
Hello there, actually I am struggling on this, but do not get a satisfying result. Perhaps there are some best-practice ideas on how to handle.... We have developed some reports to be shown on a dashboard Why a dashboard? Highly flexible in adding/removing topics and beyond-workspace use of published reports The overall dashboard contains 19 (self produced images), dashboards underneath between 1 and 4 of these pictures User should be guided by small images representing the topic (png / svg format) and to increase the recognition value. All images are stored in a Sharepoint-Folder Power BI Desktop Version is September 2022 Issue is on the following: loading pictures from Sharepoint to Dashboard-Tiles works fine, but security settings need to be fixed (no right on the sharepoint folder = no picture displayed) Integrating pictures in PBI not possible for SVG-images (Format not listed in File Dialog) Integrating picture s in PNG-Format requires base64 conversion but faces limit-issue in leght of resulting string (some pics >32766 characters) Which visual should be used to display images? Either not certified (Simple Image) , blocked by IT-Admin. Image Pro w. multiple Image ~ 200 € p.a. abonnement, no experience/idea of rendering-speed. Actually I am 'abusing' the Charticulator Visual to display a picture (SVG-Picture, Charticulator can, PBI cannot), but the rendering time is extreeeemly slow while rendering all the 19 images to the dashboard. Solution works for only a few images, but not for 19. On top we face different results on different Browser or within Teams which makes the above mentioned concept unstable, but this will be adressed to the IT-Admin. Do you know a fast and low price / no price but ntl. recommendable visual to use for this? Thanks to everyone giving a hint. Have a nice weekend. ThomasSolvedhow to... Create Measure to identify "direction" of development ofranking from two periods
Hello there, I would like to create a measure to indicate the development of rankings per item from two periods (RankActual=a, RankPrevious=p). Because both values might be <0 or > 0 or = 0, I need a hint how to handle that in a smart way. My approach seems not good. I did some IF-THEN-ELSE-syntax but the resulting indicator -1 | 0 | +1 is not set correctly IF ( AND( a<0, p<0 ), a | < | = | > p ) is varying the relations only, but anyway there is a positive development indicated, although not positive logically... Example: a=-6, p=-4 leads to a < p the delta is (a-p) = -2, the movement is 2 points DOWN., but it is shown as upward-movement. Actually I am stuck on this and kindly request your input. thank you very much Thomas536Views0likes3Comments